Files
TS_Proto/package.json
T
nilesh.pandClaude Opus 4.8 4d3eb18a6c 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>
2026-09-13 11:38:01 +05:30

44 lines
2.1 KiB
JSON

{
"name": "travelhub",
"version": "0.0.0",
"private": true,
"description": "Multi-tenant flight booking sample: Angular, Go, PostgreSQL.",
"scripts": {
"test": "npm run test:go && npm run test:web && npm run test:e2e",
"test:e2e": "cd e2e && npx playwright test",
"test:e2e:headed": "cd e2e && npx playwright test --headed",
"test:e2e:report": "cd e2e && npx playwright show-report",
"test:e2e:ui": "cd e2e && npx playwright test --ui",
"test:go": "cd backend && go test ./...",
"test:go:cover": "cd backend && go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.out",
"test:go:race": "cd backend && go test -race ./...",
"test:go:verbose": "cd backend && go test -v ./...",
"test:unit": "npm run test:go && npm run test:web",
"test:web": "cd frontend && npx ng test --no-watch",
"test:web:cover": "cd frontend && npx ng test --no-watch --coverage",
"test:web:watch": "cd frontend && npx ng test",
"report": "node scripts/open-report.mjs",
"report:pdf": "cd e2e && node scripts/report-pdf.mjs",
"report:pdf:summary": "cd e2e && node scripts/report-pdf.mjs --summary",
"report:playwright": "node scripts/open-report.mjs playwright",
"report:serve": "node scripts/serve-report.mjs",
"lint": "npm run lint:go && npm run lint:e2e",
"lint:e2e": "cd e2e && npx tsc --noEmit",
"lint:go": "cd backend && go vet ./...",
"docs:tests": "node scripts/test-catalog.mjs",
"docs:tests:check": "node scripts/test-catalog.mjs --check",
"build": "npm run build:go && npm run build:web",
"build:go": "cd backend && go build -o bin/api ./cmd/api",
"build:web": "cd frontend && npx ng build",
"setup": "npm run setup:web && npm run setup:e2e",
"setup:e2e": "cd e2e && npm install && npx playwright install chromium",
"setup:web": "cd frontend && npm install",
"db:create": "node scripts/db.mjs create",
"db:migrate": "node scripts/db.mjs migrate",
"db:reset": "node scripts/db.mjs reset",
"db:test": "node scripts/db.mjs test-db",
"start:api": "cd backend && go run ./cmd/api",
"start:web": "cd frontend && npm start"
}
}