A simple weather app using flask framework and OpenWeatherMap API
- Clone the repository
- Inside the project directory, create a python virtual environment
python3 -m venv venv
- Activate the virtual environment
- On windows
venv\Scripts\activate.bat
- On Unix or MacOS
source venv/bin/activate
- On windows
- Install the dependencies
pip install -r requirements.txt
- Configuring environment variables
- Get your free API key from here
- Create a
.env
file in the project directory - Add the below line to the file
API_KEY=YOUR_API_KEY
- Run the application
python main.py
- Visit
localhost:8000
on your browser