Kick-starter to your REST application.
- Create a virtual environment: -
python -m venv venv
- Activte: -
- Windows:
venv\Scripts\activate
- Unix-like:
. venv\bin\activate
- Windows:
- Run: -
pip install .
- Activte: -
- Windows:
venv\Scripts\activate
- Unix-like:
. venv\bin\activate
- Windows:
- Change directory: -
cd src
- Create a new user: -
flask run createsuperuser
- Run: -
python wsgi.py
gunicorn -b 0.0.0.0:8000 --chdir=src -w 4 -t 10 wsgi:application