No description
- Python 90.5%
- CSS 8.8%
- Mako 0.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| alembic | ||
| app | ||
| assets/styles | ||
| tests | ||
| .gitignore | ||
| alembic.ini | ||
| config.example.yaml | ||
| pyproject.toml | ||
| README.md | ||
| requirement.txt | ||
| uv.lock | ||
backend-python
FastAPI + SQLModel scaffold for the backend rewrite.
1) Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate
2) Install dependencies
pip install -e .
pip install -e .[dev]
3) Configure environment
cp config.yaml.example config.yaml
4) Run development server
python -m app.main
- default config path: ./config.yaml
- frontend assume backend serving port 3000, adjust as needed
Use a custom YAML config file:
python -m app.main --config ./config.example.yaml
5) Run tests
pytest -q
Project layout
app/main.py: FastAPI app entry and startup lifecycleapp/core/config.py: central settingsapp/db/session.py: SQLModel engine and session dependencyapp/models/: SQLModel table modelsapp/crud/: data access functionsapp/api/v1/endpoints/: API endpoint modules