- Python 3
Run following commands inside the project directory.
-
Setup virtual environment
python3 -m venv ./venv
-
Activate virtual environment
source ./venv/bin/activate
-
Install
pipenv
pip install pipenv
While installing
pipenv
, yourpip
might be upgraded to version not supported by your Python version. To prevent that, redo the installation from step 1 and updatepip
manually to version supported by your Python.For example, for Python 3.5:
pip install pip==20.3.4
-
Install packages
pipenv install
Run following commands inside the project directory.
- Activate virtual environment
source ./venv/bin/activate
- Start web server:
To use different port:
flask run
To run in development mode:flask run --port 8080
FLASK_ENV=development flask run
- Open browser and go to http://localhost:5000. Make sure to replace
5000
if you use different port.