A multi-platform Python application with FastAPI backend and React frontend.
- Backend: FastAPI (Python 3.11+)
- Frontend: React 18 + TypeScript + Vite
- Desktop: Electron
- Database: SQLite (dev) / PostgreSQL (prod)
- Deployment: Docker, GitHub Actions
my-application/
├── backend/ # FastAPI application
│ ├── src/my_app/
│ └── tests/
├── frontend/ # React application
│ └── src/
├── electron/ # Desktop wrapper
├── docker/ # Container configs
└── .github/ # CI/CD workflows
- All API routes under
/api/prefix - Pydantic models for all request/response schemas
- SQLAlchemy for database operations
- Async handlers where beneficial
- Functional components with hooks
- React Query for server state
- Axios for API calls
- TypeScript strict mode
- Semantic versioning (v1.2.3)
- Conventional commits
- All code formatted and linted before commit
cd backend
uv run uvicorn my_app.main:app --reload
uv run pytest
uv run ruff check .cd frontend
npm run dev
npm test
npm run lintdocker-compose -f docker/docker-compose.yml upGET /health- Health checkGET /api/items- List itemsPOST /api/items- Create itemGET /api/items/{id}- Get itemPUT /api/items/{id}- Update itemDELETE /api/items/{id}- Delete item
DEBUG- Enable debug mode (default: false)DATABASE_URL- Database connection stringSECRET_KEY- Application secret keyCORS_ORIGINS- Allowed CORS origins