-
Create and activate the environment,
In Windows:
python -m venv .venv .venv\Scripts\activate.batIn Unix based operative systems:
virtualenv .venv source .venv/bin/activate -
Install the requirements:
python3 -m pip install -r requirements/prod.txtRemember to do it with Python 3.
-
Set the env var
FLASK_APPtotime_tracker_apiand start the app:In Windows
set FLASK_APP=time_tracker_api flask runIn Unix based operative systems:
export FLASK_APP=time_tracker_api flask run -
Open
http://127.0.0.1:5000/in a browser