This is a new starter project, the beginning of the FastAPI core for AltsManager, based on a stadand FastAPI deployment from the Medium article: “Getting Started with FastAPI: A Step-by-Step Beginner’s Guide”
📖 Check the full article: Getting Started with FastAPI: A Step-by-Step Beginner’s Guide
- FastAPI installation and setup
- First route example with
@app.get("/") - Path & Query Parameters
- Request Body with Pydantic Models
- Response handling & status codes
- Async endpoints & concurrency
- Automatic API docs with Swagger UI
- Project structure for growing apps
- Router usage with
include_router()
git clone https://github.com/inanpy/fastapi-getting-started-guide.git
cd fastapi-getting-started-guide
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadVisit:
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
See app/ folder for full implementation.