Skip to content

dl-lim/fastapi-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Example (with SQLModel) using uv

Quickstart:

uv sync
uv run uvicorn app.main:app --reload

Features shown:

  • Auth with OAuth2 password and JWT
  • SQLModel models and CRUD (User, Item)
  • Dependencies for DB sessions and auth
  • Pagination via page/size
  • Background tasks endpoint
  • File upload and streaming
  • WebSocket echo
  • CORS and healthcheck

Try:

  • POST /auth/token with username, password for a token (seed a user via DB or create via /users/ as superuser)
  • Auth routes: /users/me, /items/
  • Files: /files/upload, /files/stream
  • WebSocket: ws://localhost:8000/ws/echo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages