No description
  • Python 90.5%
  • CSS 8.8%
  • Mako 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-10 16:09:27 +08:00
alembic feat!: Justify main parameter before generating plan 2026-07-10 16:09:27 +08:00
app feat!: Justify main parameter before generating plan 2026-07-10 16:09:27 +08:00
assets/styles feat: Adjust style 2026-07-10 14:05:04 +08:00
tests feat: Prompt & Styles for varient page content-type 2026-06-25 15:03:15 +08:00
.gitignore feat: Generate plain html 2026-06-24 16:47:39 +08:00
alembic.ini feat: Alembic 2026-07-01 16:09:00 +08:00
config.example.yaml feat: Add themes to config example 2026-06-29 09:58:39 +08:00
pyproject.toml feat: Alembic 2026-07-01 16:09:00 +08:00
README.md docs: Update readme 2026-06-29 11:16:49 +08:00
requirement.txt feat: Alembic 2026-07-01 16:09:00 +08:00
uv.lock feat: First commit 2026-06-23 10:21:09 +08:00

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 lifecycle
  • app/core/config.py: central settings
  • app/db/session.py: SQLModel engine and session dependency
  • app/models/: SQLModel table models
  • app/crud/: data access functions
  • app/api/v1/endpoints/: API endpoint modules