- Python: 3.8+
- Sanic: 21.9+
# to setup virtualenv with python 3.8
virtualenv venv --python=python3.8
# activate virtualenv
source venv/bin/activate
# install dependencies
pip install sanic
pip install sanic[ext]
pip install tortoise-orm
sanic main.app --dev
# or
sanic main.app --debug
sanic main.app
Links to documentation page: