- create env
python3 -m venv env
source env/bin/activate
- install requirements
pip install -r requirements.txt
or libraries
pip install fastapi uvicorn pydantic
- start server
python3 main.py
-
If "Uvicorn running on http://0.0.0.0:8000" not working, try to "http://127.0.0.1:8000/"
-
get Docs
http://127.0.0.1:8000/docs
or
http://127.0.0.1:8000/redoc