TechieCareerGuidance
AI career coaching on phones, tablets and the web, with credits that are never charged twice.
- Architect and developer
- 2026
What it is
A Flutter app for iOS and Android phones and tablets with a persistent AI coach, résumé review and cover letters, a job tracker, mock interviews, skills-gap pathways, salary insights and a relocation copilot. Staff run it from a React admin portal, and AI use is paid for with credits bought through Stripe as Plus and Pro plans or top-ups.
The problem
Every AI call costs money, so a paid feature must charge exactly once even when the phone retries or a server crashes mid-request, and text a user sends to a language model has to be treated as untrusted input.
Architecture
Requests flow left to right. Hover a component for its role.
- Flutter app client, phone and tablet
- React admin portal client, staff network only
- Nginx edge, TLS, rate limits
- Stripe external, plans and top-ups
- Spring Boot backend service, auth, credits, billing
- PostgreSQL ledger data, append-only
- Redis and MinIO data, sessions, documents
- FastAPI AI service ai, stateless, no public port
- Anthropic and OpenAI external
Key decisions
Charge once, refund on failure
The backend debits an append-only credit ledger in the same transaction that records the request, calls the AI service outside it, and refunds on any failure. A retry with the same Idempotency-Key returns the stored result without charging again, and a scheduled job refunds requests a crash left pending.
Business logic in one place
Spring Boot owns users, credits, billing and entitlements. The FastAPI service is stateless: it takes a provider, a model and sanitised input and returns validated, typed output, with no database, no Stripe access and no public port.
Model input is untrusted
User text is sanitised and wrapped as data inside prompts, and every response must match a strict schema, checked by the AI service and again by the backend before it is stored.
Highlights
- Coach replies stream token by token over server-sent events.
- One Flutter codebase adapts to phones and tablets, with master-detail layouts on larger screens.
- Credit costs, AI models and feature flags change live from the admin portal.
- Google or email sign-in, optional TOTP two-factor, and remote sign-out of other sessions.
- Nightly encrypted backups with a monthly restore drill that checks the ledger.
Stack
Screens



