Commit graph

2 commits

Author SHA1 Message Date
ZTatman
5187fd8de9 Organize docs and examples
- Centralize examples in /examples folder
- Fix README broken reference to docker-compose.example.yml
- Rename design docs (remove date prefixes)
2026-04-24 13:39:00 -04:00
ZTatman
dcf60f4082 Add FastAPI lifespan pattern with async SQLAlchemy and Docker setup
- Move get_db to main.py for cleaner separation of concerns
- Remove engine/sessionmaker from database.py (keep only Base class)
- Fix config.py: add +asyncpg to database_url, remove @dataclass
- Add lifespan context manager for engine lifecycle
- Add docker-compose.yml for web + postgres services
- Add web/Dockerfile for containerized FastAPI app
- Add web/.env.example as environment template
2026-04-24 13:27:58 -04:00