# cria ambiente virtual
python -m venv <name>
# cria arquivo requirements.txt com as dependências do projeto
pip freeze > requirements.txt
# instala as dependências do projeto
pip install -r requirements.txt
# starta o server
uvicorn main:app
gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker
# swagger
http://127.0.0.1:8000/docs
# redoc
http://127.0.0.1:8000/redoc
-
Notifications
You must be signed in to change notification settings - Fork 0
4L1C3-R4BB1T/estudos-fastapi
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
Repository files navigation
About
📚 Estudos sobre FastAPI.