- Create Python's Virtual Environment
python3 -m venv venv
- Activate venv
- Ubuntu
. venv/bin/activate
- Windows
. venv\Scripts\activate.bat
- Ubuntu
pip install fastapi "uvicorn[standard]" python-multipart sqlalchemy jinja2
- ASGI Server: "uvicorn[standard]"
- Template and DB support
- python-multipart
- sqlalchemy
- jinja2
- Start Server
- from the
timetabling
folder:- "uvicorn file_name:server_instance --reload" (Reload only while in develop mode)
uvicorn app:app --reload
- Obs.: Has auto docs at
/docs
- from the
The original structure of an web app with fasAPI was inspired by Patrick Loeber's.