Description
Create the initial FastAPI project structure for the AstroML web dashboard API.
This is the foundational task that all other API issues depend on.
Tasks
Acceptance Criteria
uvicorn api.main:app --reload starts the server on http://localhost:8000
GET /health returns 200 with status ok
- CORS headers allow requests from
http://localhost:5173 (Vite dev server)
- All configuration is loaded from environment variables /
.env file
Dependencies
- Python 3.10+
- FastAPI, uvicorn, pydantic-settings
Labels
enhancement, api, good first issue
Description
Create the initial FastAPI project structure for the AstroML web dashboard API.
This is the foundational task that all other API issues depend on.
Tasks
api/directory at project root with__init__.py,main.py,config.pyuvicorn[standard]to project dependencies (or arequirements-api.txt)BaseSettings(database URL, API keys, model paths)GET /healthreturning{"status": "ok"}GET /api/v1root endpoint with version infomake run-apitarget toMakefileAcceptance Criteria
uvicorn api.main:app --reloadstarts the server onhttp://localhost:8000GET /healthreturns 200 with status okhttp://localhost:5173(Vite dev server).envfileDependencies
Labels
enhancement,api,good first issue