GitHunt
IA

IanLiuTW/python-fastapi-template

A template repo to start creating a FastAPI app.

python-fastapi

Use poetry to install dependencies

poetry install

Use the following commands to start server

# Development mode with auto-reload
uvicorn main:app --reload

# Production mode with multiple workers on specified port
uvicorn main:app --workers 5 --port 3000

Test the API response

Check out the API docs (in Swagger UI)

Check out the API docs (in ReDoc UI)

Take it from here

  • Start your development from modifying ./main.py and ./tests/test_main.py.
IanLiuTW/python-fastapi-template | GitHunt