[t-004] Create server.py + lifespan.py — App startup & router regist #4
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Create the FastAPI application with lifespan lifecycle (startup health check, shutdown) and register all route modules.
References
Reference
Implementation Steps
Implementation Steps
1. Create
src/core/lifespan.pyImplement the app lifespan with:
2. Create
src/server.pyCreate the main FastAPI app:
3. Create empty route modules (placeholders — will be filled in later tasks):
4. Create
src/routes/__init__.py:Verification Gate
Verification Gate
Run:
And verify the app can start (briefly):
STOP Conditions
STOP Conditions
Depends on: t-003