This is a small full stack project that enables people to acquire current city weather information. This web applicaiton is mainly implemented by Python and Django framework. Try it!
- Use
git clone
to download the whole files:
git clone https://github.com/xuliang2019/weather-app.git
- Create a virtual environment and activate it inside the project folder:
python -m venv my_env
cd my_env
Scripts\activate
- Install the dependencies listed in the
requirements.txt
file under root directory :
pip install -r requirements.txt
- Get your own
Open weather api key
and add it to theurl
variable under the directory ofweather/views.py
- Run your server and try the app at root directory:
python manage.py runserver
And you will see below interface. Congratulations!