- Go 63.1%
- TypeScript 23%
- Dart 5.9%
- PLpgSQL 4.7%
- Kotlin 2.3%
- Other 0.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
clients / clients (push) Successful in 1m30s
security / secret scan (gitleaks) (push) Successful in 1m33s
security / Go vulnerabilities (govulncheck) (push) Successful in 1m55s
mobile-pos / mobile-pos (push) Successful in 6m3s
security / files and image (trivy) (push) Successful in 3m42s
web-partner / web-partner (push) Successful in 2m55s
web-admin / web-admin (push) Successful in 4m8s
web-ticket / web-ticket (push) Successful in 9m59s
api / api (push) Successful in 19m53s
mobile-ticket / mobile-ticket (push) Successful in 23m56s
|
||
| .forgejo | ||
| api | ||
| deploy | ||
| docs | ||
| mobile | ||
| scripts | ||
| web | ||
| .gitignore | ||
| .gitleaksignore | ||
| CLAUDE.md | ||
| Makefile | ||
| README.md | ||
KWS Platform — Migration to Go + React
Migration of the legacy KWS.VNext (.NET 8 / Xamarin / Azure) ticketing platform for Kenya Wildlife Service
to a simple, low-cost stack deployable on a VPS.
| Doc | Purpose |
|---|---|
| docs/01-specification.md | What the system does, the domain model, and requirements for the new build |
| docs/02-deployment-architecture.md | VPS architecture sized for 1,000 concurrent users, free/self-hosted services |
| docs/03-development-plan.md | Phased plan, order of work, risks, and gates |
Decisions so far
| # | Decision | Status |
|---|---|---|
| D1 | Backend in Go modular monolith, PostgreSQL | Decided. The .NET 10 RMS scaffold is superseded; restart in Go |
| D2 | Web apps (Ticket, Admin, TourOperator) in React + TypeScript | Decided |
| D3 | Customer Ticket mobile app in Flutter (or PWA if Web.Ticket covers customers) |
Decided |
| D4 | POS: native Android (Kotlin), Android only, online-only (no offline selling) | Decided, parked until hardware is confirmed |
| D5 | Kiosk app | Out of scope |
| D6 | No paid services where a free/self-hosted option exists | Decided |
| D7 | Target: 1,000 concurrent users across web, mobile and agents at peak; Docker Compose on VPS with failover from launch | Decided |
| D8 | Fresh start: no production data migration; legacy kept read-only as an archive | Decided |
| D10 | Auditing: trigger-stamped created/updated_by + version on every entity table, append-only audit_log for access control and configuration, soft delete per table (ADR 0003) |
Decided |
| D9 | UUIDv7 primary keys on every table, PostgreSQL 18+ everywhere (ADR 0002) | Decided |
Repo layout and commands
api/ Go backend (one binary: KWS_MODE=api|worker|migrate)
deploy/ compose files (dev Postgres now; production topology per docs/02)
docs/ specification, deployment architecture, development plan, ADRs
scripts/ check-coverage.sh (80% gate)
.forgejo/ CI workflow
make test · make cover · make lint · make build · make docker · make up.
Rules for contributors (TDD, SOLID, 80% coverage, money handling, secrets) are in CLAUDE.md.
Auth uses standard OIDC so the identity provider stays replaceable: ADR 0001.
Open questions
- Auth server: Zitadel chosen for now (replaceable, see ADR 0001); revisit after evaluation.
- VPS provider and region (latency to Kenya vs price).
- Which payment gateways go live first (M-Pesa STK assumed), and who holds the sandbox/production credentials?
- Fresh start: what legacy data, if any, must be kept for reporting/audit (read-only archive, export of historical transactions)?
- When the POS is unparked: PDQ vendor/model and printer model (no iOS, no offline).
Source of findings
Based on a read-through of /Users/amirrudinyahaya/Workspace/TouchPoint/KWS.VNext (3,082 commits, Sep 2021 – Mar 2023).
Business rules marked [verify] were inferred from code structure and must be confirmed with characterization tests
before being ported.
Development standards
TDD, SOLID, loose coupling and at least 80% test coverage apply to every change: see docs/development-standards.md. Pull requests answer the checklist in .forgejo/PULL_REQUEST_TEMPLATE.md.