Weather API Data is a RESTful API application built using Laravel and MySQL. The application scrapes and aggregates weather data from the Meteo API, organizing and exposing it through well-structured API endpoints. The API provides current, daily, and hourly weather information for municipalities across Timor-Leste.
- Current Weather Data: Retrieve real-time weather data for all municipalities or specific ones.
- Daily Forecast: Get weather forecasts for the next 7 days for a specific municipality.
- Hourly Forecast: Access weather data for the next 10 hours for any municipality.
- PHP 8.0+
- Composer
- Laravel 9.x
- MySQL 8.x
- cURL
- API Key from Meteo API
- Clone the Repository
git clone https://github.com/your-repo/weather-api-data.git cd weather-api-data
- Install Dependencies
composer install
- Configure Enviroment
cp .env.example .env
- Configure Database
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_database_username DB_PASSWORD=your_database_password
- Run the Database Migration
php artisan migrate
- Start Application
php artisan serve