Overview
Basecamp is a self-hosted request and ticketing platform. Request types are configured rather than hard-coded, the same way a helpdesk tool configures its ticket types. The first configuration handles On-Duty (OD) requests.
Requests move through a hierarchy: a captain at the top creates the first accounts, deans scoped to an institute create HODs, HODs create mentors and students, and approvals follow the chain.
Architecture
- Foundation: self-hosted Supabase (Postgres, GoTrue auth, PostgREST, Realtime, Storage) on a single VPS, behind a Kong gateway.
- Authorization:
auth.uid()-based Row Level Security is the real boundary. There is no custom authorization layer to get wrong. - Auth: native TOTP MFA through GoTrue, so there is no separate identity service to run.
- Object storage: Garage, a self-hosted S3-compatible store, on a separately attached volume rather than the VPS boot disk.
- Frontend: Vite, React and TypeScript, pointed at the gateway.
Design decisions
Store as little as possible. Only one thing needs permanent storage: student-uploaded certificates and achievements. Other data that looked like storage problems turned out not to need it:
- Parent consent is a verified database record (a mentor calls, confirms, and ticks a box), never a scanned document.
- Official documents such as an NOC or Annexure are generated on demand from database rows and a stored signature image. The PDF is a cache and can be regenerated identically.
- OD evidence attachments (posters, letters, receipts) are purged automatically a week after the HOD closes the ticket. They only matter while the request is active.
No fixture data in production. The setup wizard creates exactly one account, the captain, and the structure needed to boot. Every other account and every org-specific structure is created by a person inside the app. seed.sql is demo-only and is never run against a real deployment.
Migrations are ordered and scripted. Database roles are bootstrapped first. The auth service runs its own migrations before the schema, because the schema’s triggers depend on the MFA tables that those migrations create.
Stack
- Supabase (self-hosted): Postgres, GoTrue, PostgREST, Realtime, Storage
- Kong (gateway and CORS), Garage (object storage)
- Docker Compose for the full stack
- Vite, React, TypeScript for the app
Deployment
The repository includes a full Docker Compose stack, a DEPLOY.md covering build-from-scratch through VPS go-live, and scripts for database roles and migrations.
The live instance runs from a separate copy that is not in this repository, so this entry describes the repository.