English | 繁體中文
A personal tech wiki for articles, notes, and technical documentation.
pnpm install # install concurrently
pnpm install:web # install frontend deps
pnpm install:api # create venv + install backend deps
pnpm dev # run FastAPI (8000) + Next.js (3000) togethercd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadAPI docs: http://localhost:8000/docs
cd frontend
pnpm install
pnpm devpnpm test # or: cd backend && pytest| Method | Path | Description |
|---|---|---|
| GET | /api/articles?q=&tag=&category= | List / search articles |
| GET | /api/articles/{slug} | Get one article |
| POST | /api/articles | Create article |
| PUT | /api/articles/{slug} | Update article |
| DELETE | /api/articles/{slug} | Delete article |
| GET | /api/categories | Category counts |
DATABASE_URL(backend): defaults tosqlite:///./wiki.db; usepostgresql+psycopg://...in productionCORS_ORIGINS(backend): defaults tohttp://localhost:3000NEXT_PUBLIC_API_BASE(frontend): defaults tohttp://localhost:8000