A simple weather application built with Flask that fetches real-time weather data using the OpenWeatherMap API.
Clone the repository
git clone https://github.com/KunalGupta25/WeatherAPP.git
cd WeatherAPP
Create and activate a virtual environment
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
Install dependencies
pip install -r requirements.txt
Configure your API key
Create a .env file in the project root:
API_KEY=your_openweathermap_api_key_here
Run the application
python weather.py
Open your browser and navigate to http://127.0.0.1:5000.
This project includes a vercel.json configuration for easy deployment to Vercel.
npm i -g vercelvercel in the project directory and follow the prompts.API_KEY environment variable in your Vercel project settings.WeatherAPP/
├── weather.py # Flask application
├── requirements.txt # Python dependencies
├── vercel.json # Vercel deployment configuration
├── templates/
│ └── weather.html # HTML template
└── .env # API key (not committed)
This project is open source and available under the MIT License.