A modern, full-stack weather application featuring a Laravel backend (API) and a Next.js frontend. Provides real-time weather data for any city using the OpenWeatherMap API, with a beautiful, responsive UI.
- Search weather by city name
- Real-time weather data: temperature, humidity, wind speed, description, and icon
- Responsive, modern UI using TailwindCSS and RippleUI
- Laravel API backend with MySQL database
- Environment variables for secure API key management
- Backend: Laravel, PHP, MySQL
- Frontend: Next.js (React), TypeScript, TailwindCSS, RippleUI
- API: OpenWeatherMap
- Node.js & npm
- PHP & Composer
- MySQL
cd weather-api- Copy
.env.exampleto.envand set your MySQL and OpenWeatherMap API credentials:OPENWEATHERMAP_API_KEY=your_api_key_here - Install dependencies:
composer install - Generate app key:
php artisan key:generate - Run migrations:
php artisan migrate - Start the server:
php artisan serve
cd weather-frontend- Install dependencies:
npm install - Start the development server:
npm run dev
- Visit the frontend at
http://localhost:3000(or your configured port) - The backend API runs at
http://localhost:8000 - Enter a city name to get live weather data
- Backend:
.env(Laravel)OPENWEATHERMAP_API_KEY=your_api_key_here
- Frontend:
.env.local(if needed for client-side API keys)
MIT
Built with ❤️ by OpenWeatherClone contributors.