No description
  • Go 63.1%
  • TypeScript 23%
  • Dart 5.9%
  • PLpgSQL 4.7%
  • Kotlin 2.3%
  • Other 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
amiryahaya f832591d34
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
Merge pull request 'feat: gate group review (scan, review, confirm) and sunlight look' (#174) from feat/gate-group-review into main
2026-11-08 02:45:23 +01:00
.forgejo fix(pos): final review fixes (frame re-arm, retry cap, pool, sign-out, tz, checksum) (#69) 2026-11-07 01:15:09 +08:00
api test(api): a repeated check-out ticket id is a 422 on ticket_ids[i] 2026-11-08 00:58:34 +08:00
deploy feat(pos): Android gate app skeleton, Kotlin client and CI (#69) 2026-11-06 23:40:37 +08:00
docs docs: ADR 0039 gate group review 2026-11-08 00:47:24 +08:00
mobile fix(pos): format review dates in English 2026-11-08 00:55:45 +08:00
scripts feat(pos): Android gate app skeleton, Kotlin client and CI (#69) 2026-11-06 23:40:37 +08:00
web test(ticket): e2e fills visitor details; show general visitor errors 2026-11-07 20:34:06 +08:00
.gitignore feat(pos): Android gate app skeleton, Kotlin client and CI (#69) 2026-11-06 23:40:37 +08:00
.gitleaksignore fix(security): bump golang.org/x/net to v0.62.0, ignore partner test token 2026-11-03 23:39:37 +08:00
CLAUDE.md docs: ADR 0039 gate group review 2026-11-08 00:47:24 +08:00
Makefile feat(web): pnpm workspace with ticket, admin and partner apps (#5) 2026-10-29 03:23:06 +08:00
README.md docs: development standards and PR checklist 2026-10-23 06:02:25 +02:00

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

  1. Auth server: Zitadel chosen for now (replaceable, see ADR 0001); revisit after evaluation.
  2. VPS provider and region (latency to Kenya vs price).
  3. Which payment gateways go live first (M-Pesa STK assumed), and who holds the sandbox/production credentials?
  4. Fresh start: what legacy data, if any, must be kept for reporting/audit (read-only archive, export of historical transactions)?
  5. 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.