- Install pip
- Install Virtual environment using
pip3 install virtualenv
ORsudo apt install virtual env
- Create a virtual environment using
virtualenv venv
- Activate the python environment using
source venv/bin/activate
- Install requirements using
pip3 install -r requirements.txt
- Run
python3 weather.py
- Deactivate virtual env using
deactivate
$ virtualenv -p python3 venv
$ pip install -r requirements.txt
$ gunicorn app:app
$ cd client
$ npm install
$ npm run build
To check the build directory on a static server :
$ cd build
$ python3 -m http.server
Deployment on Heroku
$ heroku login ...
$ heroku create <your-app-name>
$ heroku git:remote <your-app-name>
$ git push heroku master