This repository contains code written in Laravel. Below are instructions on how to set up and run the Laravel project.
- PHP (recommended version: 7.4 or higher)
- Composer
- MySQL or any other compatible database server
- Node.js and npm (for frontend assets compilation, optional)
- Clone this repository to your local machine:
- Navigate to the project directory:
- Install Composer:
- Generate your own .env file:
- Genereate key for APP_KEY:
- Migrate your tables to database:
- Add your WeatherAPI Key at .env
git clone https://github.com/your-username/your-repository.git
cd your-repository
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
OPENWEATHERMAP_API_KEY=your_key
To run the Laravel application locally, execute the following command:
php artisan serve
This will start a development server. You can access the application in your web browser at http://localhost:8000
.
- Make sure your web server (e.g., Apache, Nginx) is properly configured to serve the Laravel application if you're not using the built-in development server.
- Ensure that appropriate file permissions are set, especially for storage and bootstrap/cache directories.
- For advanced usage and deployment considerations, please refer to the official Laravel documentation.
If you wish to contribute to this project, please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.