A simple and beginner-friendly Weather Forecast Web Application built using Flask.
The app fetches real-time weather data from a weather API and displays current conditions like temperature, weather status, and description for any city.
weather_app/
│
├── static/ # CSS files, images, and icons
├── templates/ # HTML templates (Jinja2)
│
├── .env # Environment variables (API key)
├── .gitignore # Files and folders ignored by Git
├── app.py # Main Flask application file
├── requirements.txt # Project dependencies
- 🌍 Search weather by city name
- 🌡️ Shows temperature and weather condition
- ☀️ Weather icons based on condition (sun, cloud, rain, snow, thunder)
- 🎨 Clean and simple user interface
- 🔐 API key stored securely using
.envfile
- Python 3
- Flask
- HTML5
- CSS3
- Weather API
- python-dotenv
git clone https://github.com/codebyrks/Weather-App-flask.gitpip install -r requirements.txtCreate a .env file in the root directory and add:
API_KEY=your_weather_api_key_herepython app.py