A modern, Django-based weather dashboard that delivers real-time weather updates and 5-day forecasts. Manage your favorite cities with a personalized, responsive interface.
- User Authentication: Secure signup and login system to protect user data.
- Live Weather Data: Real-time temperature, humidity, wind speed, and conditions via OpenWeatherMap API.
- 5-Day Forecast: Plan ahead with detailed predictive weather data.
- Smart Dashboard:
- Search and view weather for any global city.
- Favorites Manager: Pin cities to your dashboard.
- Quick Access: Click any favorite city to instantly load its latest weather report.
- Responsive UI: A polished, mobile-ready interface built with modern CSS and glassmorphism effects.
- Backend: Python, Django Framework
- Database: SQLite (Development), utilizing Redis for caching (optional support included)
- Frontend: HTML5, CSS3, JavaScript
- API Integration: OpenWeatherMap
Follow these steps to get the project running on your local machine.
- Python 3.8 or higher installed
pippackage manager
git clone https://github.com/Start-sys-hub/Weather-app.git
cd weather_platform(Note: Replace the URL with your actual repository URL if different)
It's recommended to use a virtual environment to manage dependencies.
# macOS / Linux
python3 -m venv venv
source venv/bin/activate
# Windows
python -m venv venv
venv\Scripts\activatepip install -r requirements.txtCreate a .env file in the root directory (/weather_platform/.env) to store your secrets.
# Django Settings
DEBUG=True
SECRET_KEY=your_secure_django_secret_key
# External APIs
WEATHER_API_KEY=your_openweathermap_api_keyApply the migrations to set up your database schema.
python manage.py migrateStart the local development server.
python manage.py runserverOpen your browser and navigate to: [http://127.0.0.1:8000/]
- Sign Up: Register a new account to access the dashboard.
- Search: Use the main search bar to look up a city (e.g., "Paris").
- Pin Favorites: When viewing a city's weather, click "Save to Favorites".
- Quick Navigation: Your favorite cities appear as pills on the dashboard. Click them to view their current weather instantly.