This is the Laravel API backend powering the WeatherWise frontend. It serves weather data from the OpenWeatherMap API and formats it for seamless frontend consumption.
- 🌤️ Current weather data endpoint
- 📈 5-day forecast endpoint
- 🧠 (Coming soon) Gemini AI integration for activity suggestions
- 📊 Clean, structured JSON responses formatted for the WeatherWise frontend
- PHP 8.2+
- Composer
- Laravel 11+
- OpenWeatherMap API key
git clone https://github.com/Morg3an/weather-wise-api.git
cd weather-wise-api
composer install
cp .env.example .env
php artisan key:generate
Update your .env
with:
OPENWEATHERMAP_API_KEY=your_openweathermap_api_key
FRONTEND_URL=http://localhost:3000 # CORS
php artisan serve
Your API will be available at http://localhost:8000.
Upcoming improvements:
- Gemini-powered activity suggestion endpoint
- Rate limiting
- Unit tests and API documentation
Contributions are welcome!
- Fork this repository
- Create your feature branch (
git checkout -b feature/your-feature
) - Commit your changes
- Push to the branch
- Create a new pull request
This project is licensed under the MIT License. See the LICENSE file for details.