Module 1 — Setup & Hello World
Welcome to Module 1 of your 12-hour FastAPI training!
1. Install FastAPI + Uvicorn
pip install fastapi uvicorn
2. Create main.py
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def read_root():
return {"message": "Hello, FastAPI!"}
# Run: uvicorn main:app --reload
No comments:
Post a Comment