Initial commit: TravelHub multi-tenant flight booking platform

Angular + Go + PostgreSQL sample with strict per-tenant isolation.

- Backend: Go API (basic auth, tenant-scoped repository layer, pgx pool)
- Frontend: Angular 22 SPA (search, checkout, bookings, dashboard)
- Database: schema, seed data and demo bookings migrations
- Tests: 311 across Go (integration), Angular (unit) and Playwright (e2e),
  plus a generated evidence report with PDF export
- Security: whitebox VAPT report under security/

Secrets (.env, tokens, DB credentials) are git-ignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
nilesh.p
2026-09-13 11:38:01 +05:30
co-authored by Claude Opus 4.8
commit 4d3eb18a6c
129 changed files with 25424 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
/** The seeded demo accounts, from backend/migrations/002_seed.sql. */
export interface Account {
tenant: string;
tenantName: string;
email: string;
password: string;
fullName: string;
role: 'admin' | 'agent';
}
export const DEMO_PASSWORD = 'demo1234';
export const SKYLINE_AGENT: Account = {
tenant: 'skyline',
tenantName: 'Skyline Travel',
email: 'agent@skyline.test',
password: DEMO_PASSWORD,
fullName: 'Marcus Reid',
role: 'agent',
};
export const SKYLINE_ADMIN: Account = {
tenant: 'skyline',
tenantName: 'Skyline Travel',
email: 'admin@skyline.test',
password: DEMO_PASSWORD,
fullName: 'Ava Chen',
role: 'admin',
};
export const GLOBETROTTER_AGENT: Account = {
tenant: 'globetrotter',
tenantName: 'Globetrotter Tours',
email: 'agent@globetrotter.test',
password: DEMO_PASSWORD,
fullName: 'Tom Okafor',
role: 'agent',
};
export const GLOBETROTTER_ADMIN: Account = {
tenant: 'globetrotter',
tenantName: 'Globetrotter Tours',
email: 'admin@globetrotter.test',
password: DEMO_PASSWORD,
fullName: 'Priya Nair',
role: 'admin',
};