Prasyarat
- Bun 1.3+
- Postgres lokal atau Neon dev
- File
.envdi root (salin dari.env.example)
Struktur kerja
| Perintah | Fungsi |
|---|---|
./thub dev | Web + API + renderer |
./thub doctor | Cek env & struktur |
./thub doctor --ci | Versi CI (tanpa secret nyata) |
bun run lint:ci | Lint tooling/scripts |
cd apps/web && bun run test | Vitest frontend |
cd apps/api && bun run test | Vitest API |
Branch & commit
- Branch dari
main:feat/...,fix/...,docs/... - Commit message: conventional commits (
feat:,fix:,docs:) - PR ke
main— CI harus hijau
CI yang harus lulus
| Job | Perintah lokal |
|---|---|
| Lint | bun run lint:ci |
| Doctor | ./thub doctor --ci |
| Docs | cd apps/docs && bun run validate |
| Web tests | cd apps/web && bun run test |
| API tests | cd apps/api && bun run test |
Setelah ubah frontend
Wajib browser check — lihat Playwright.Setelah ubah docs
docs.json navigation.
Env & secrets
- Shared:
.env(gitignored) - Override dev:
.env.development.local - Override prod:
.env.production.local - Merge:
./thub env merge
Deploy
- Production: manual via GitHub Actions Deploy Cloudflare atau
./thub deploylokal - Bukan auto-deploy on merge
Di mana cari konteks
| Topik | Lokasi |
|---|---|
| Arsitektur produk | /architecture/* |
| AI & prompt | /ai/* |
| Layanan eksternal | /external/* |
| Admin operasional | Admin playbook |
| Istilah domain | Glossarium |