A student travel-fintech prototype for the IS444 group project: family accounts, SmartFX trip forwards, trip budgets, travel insurance and Scan-to-Pay. The React SPA in this repository talks to six OutSystems composite services layered over the SMU tBank (SMUtBank) sandbox.
React 19 · Vite 8 · TanStack Router · TanStack Query · plain fetch · no UI kit · Bun 1.4+.
- Bun 1.4+ — installs dependencies and runs the app tooling.
- Node.js 22 — only for Playwright, which runs the browser and API suites.
WETRIP_SERVER_KEYfor the sandbox composites, stored in.env.local(see Quick start).
bun install
cp .env.example .env.local # then set WETRIP_SERVER_KEY
bun run dev # http://localhost:5173The dev server proxies every API path to OutSystems and adds the key server-side, so there is no CORS and no secret in the browser bundle.
Open /login, enter a demo customer's CustomerId, and the app looks up their SGD deposit account and stores a stub session. For the Scan-to-Pay camera, use bun run dev:https and open the LAN URL on a phone.
| Command | What |
|---|---|
bun run dev |
Vite dev server with the API proxy |
bun run dev:https |
HTTPS + LAN URL for the phone camera |
bun run build |
Production build into dist/ |
bun run lint / bun run format / bun run format:check |
oxlint / oxfmt |
bun run test:mocked / bun run test:ui:mocked |
Mocked browser specs, no backend |
bun run test:ui |
Live read-only Family UI suite |
bun run test:e2e |
All specs (mocked, then live; live writes to the sandbox) |
bun run demo:pre / demo:post |
Demo day: preflight checks and staging (--check is read-only), then the rollback |
bun run test:atomic / test:composite / test:trip / test:analytics / test:smartfx |
API contract suites; several write to the shared sandbox |
Run bun run format:check, bun run lint and bun run build before pushing. Live suites are serialized because they share one sandbox.
| Doc | Contents |
|---|---|
| docs/ARCHITECTURE.md | C4 context/container/component diagrams, OutSystems module boundaries, data model and ERDs, cross-cutting rules |
| docs/features/ | One page per feature: routes, API contract, query keys, rules, tests, known issues |
| docs/DEPLOYMENT.md | Vercel topology, env vars and keys, CI/CD, deploy/rollback, test suites, troubleshooting |
| docs/DESIGN.md | YouTrip design system and application-layer rules |
| PRODUCT.md | Product truth: users, scope, evidence, limitations |
| AGENTS.md | Working rules for contributors and coding agents |