All 29 prototype screens
Rendered from the navigable HTML prototype in frontend/Design/screens/. Open frontend/Design/index.html in a browser to click through it.
![]() Welcome | ![]() Log in | ![]() Create account | ![]() Onboarding |
![]() Today | ![]() Train | ![]() Routine | ![]() Routine builder | ![]() Active session |
![]() Summary | ![]() Exercise picker | ![]() Exercise | ![]() History | ![]() Past workout |
![]() Nutrition | ![]() Add meal | ![]() Food scan | ![]() Confirm meal | ![]() Meal |
![]() Progress | ![]() Photo check-in | ![]() Photo compare | ![]() Physique analysis | ![]() Forge program |
![]() Program review |
![]() Profile | ![]() Goals & targets | ![]() AI usage | ![]() Privacy & data |
Grab the Android APK from the latest release. Allow installs from unknown sources when Android asks.
Read
frontend/Design/DESIGN.mdbefore touching any UI.PLAN.mdis the source of truth; build phases live inphases/.
VULCAN/
├─ PLAN.md # source of truth
├─ AGENTS.md # agent/developer guidelines
├─ phases/ # phase-by-phase build instructions
├─ frontend/ # React Native + Expo (TypeScript, expo-router, NativeWind v5 + Tailwind v4)
│ ├─ src/app/ # routes: (auth), (tabs), ...
│ ├─ src/components/ # shared UI
│ ├─ src/engine/ # personalization pure functions (Phase 1)
│ ├─ src/lib/ # supabase client, FastAPI client, hooks
│ ├─ src/theme/ # DESIGN.md tokens
│ └─ Design/ # design system + HTML prototype (reference only)
├─ backend/ # FastAPI AI proxy + Supabase migrations (Phase 4+)
│ ├─ app/ # core (config/auth), routers
│ └─ tests/ # pytest
├─ deployment/ # Terraform + runbooks (AWS EC2, Cloudflare Tunnel, EAS)
└─ docs/readme/ # README header images, screenshots and the scripts that make them
- Node.js ≥ 20 (
node -v) - Python 3.12 via the
pylauncher (py -3.12 --version) - Android Studio + SDK for running on a phone/emulator — see
frontend/ANDROID-EMULATOR.mdfor the full setup - A Supabase free project (URL + anon key), with Auth enabled
Copy frontend/.env.example → frontend/.env and fill in:
EXPO_PUBLIC_SUPABASE_URL=https://YOUR-PROJECT.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
EXPO_PUBLIC_API_URL=http://<YOUR-LAN-IP>:8000 # the machine running FastAPI (see "Get your LAN IP" below)
Get your LAN IP:
ipconfig | findstr /i "IPv4"Copy backend/.env.example → backend/.env and fill in SUPABASE_URL (and ALLOWED_ORIGINS=* for dev).
.envfiles are gitignored — never commit them. Secrets (service-role key, Gemini key) are Phase 4+.
cd backend
py -3.12 -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt -r requirements-dev.txtcd frontend
npm installVerify Supabase credentials reachable:
cd frontend
node scripts/check-supabase.mjscd backend
.\.venv\Scripts\python -m uvicorn app.main:app --host 0.0.0.0 --port 8000Smoke-check it:
Invoke-RestMethod http://127.0.0.1:8000/health # -> {"status":"ok"}
Invoke-WebRequest http://127.0.0.1:8000/health/protected # -> 401 (no token)Run backend tests:
cd backend
.\.venv\Scripts\python -m pytestVULCAN uses expo-dev-client — Expo Go will NOT work. This builds a native dev build.
- Connect your phone via USB (enable Developer options → USB debugging) or boot an emulator.
- Confirm the device is visible:
adb devices- From
frontend/:
npx expo run:androidFirst build compiles native code (~5–15 min) and installs the app. It also starts Metro; wait for the VULCAN splash.
Subsequent dev sessions (after the build is installed):
cd frontend
npx expo startthen press a. Rebuild with npx expo run:android after adding/updating any native module.
Emulator notes: the emulator reaches your machine's
localhostvia10.0.2.2(setEXPO_PUBLIC_API_URL=http://10.0.2.2:8000); a physical phone needs your LAN IP. Detailed setup + troubleshooting:frontend/ANDROID-EMULATOR.md.
emulator is normally not on PATH — call it through $ANDROID_HOME:
# list the AVDs you have
& "$env:ANDROID_HOME\emulator\emulator.exe" -list-avds
# boot one (use the name printed above, e.g. Medium_Phone_API_36.0)
& "$env:ANDROID_HOME\emulator\emulator.exe" -avd Medium_Phone_API_36.0Wait for the Android home screen, then confirm it's attached — adb devices should show emulator-5554 device. If it instead shows emulator-5554 offline and never boots, the quick-boot snapshot is corrupt; cold boot past it:
& "$env:ANDROID_HOME\emulator\emulator.exe" -avd Medium_Phone_API_36.0 -no-snapshot-loadTo skip quick-boot permanently, set fastboot.forceColdBoot=yes and fastboot.forceFastBoot=no in %USERPROFILE%\.android\avd\<AVD>.avd\config.ini.
npx expo run:android/npx expo start+alaunch this sameemulator.exe; booting it manually first just lets you control cold-boot and see errors.
With the app installed, backend running, and EXPO_PUBLIC_API_URL pointing at the backend:
- Sign up — Welcome → Continue with email → Create account → email + password.
- If Supabase has email confirmation enabled, confirm via the email link, then log in. (To skip during dev: Supabase dashboard → Authentication → email → toggle off Confirm email.)
- Log in — you should land on the 5-tab shell with the raised orange Train button.
- Session persistence — kill the app (swipe away) and reopen: you should land on the tabs (session stored in SecureStore).
- Backend proof — on the Today tab tap "Verify FastAPI (Phase 0 proof)": it sends your access token to
/health/protectedand shows the server-verifieduser_id(JWT verified against Supabase's JWKS). - Sign out — Profile tab → Sign out → back to Welcome.
Expected Phase 0 gate results: fresh install → unauthenticated users land on (auth); signed-in users land on tabs; email sign-up/login persist across restarts; /health returns 200 without a token and /health/protected returns 401 without one; no secrets beyond the anon key in frontend/.env.
| Task | Command |
|---|---|
| Frontend typecheck | cd frontend; npm run typecheck |
| Frontend lint | cd frontend; npm run lint |
| Frontend web bundle check | cd frontend; npx expo export --platform web |
| Backend tests | cd backend; .\.venv\Scripts\python -m pytest |
| Supabase creds check | cd frontend; node scripts/check-supabase.mjs |
| Start backend | see §3 |
The API runs in Docker on a single AWS EC2 instance (provisioned with Terraform), exposed
through an outbound-only Cloudflare Tunnel (no open ports, no certs); the Android app is built
with EAS and shipped on an internal track. Full runbook:
deployment/README.md.
deployment/terraform/— Terraform: VPC, EC2, Elastic IPdeployment/01-aws-ec2.md— provision the instance with Terraformdeployment/02-cloudflare-tunnel.md— tunnel +api-vulcan.ashiswadhwani.indeployment/03-backend-deploy.md— server.env, compose, rsync/CI deploydeployment/04-frontend-eas.md— EAS project, env vars, builddeployment/05-github-actions.md— CI checks + manual deploy workflowsdeployment/06-troubleshooting.md— common failures
No module named 'app'when starting uvicorn → you're not inbackend/.cd backendfirst.- Phone shows blank/white → Metro isn't running; run
npx expo startthen pressa. - Build fails: "SDK location not found" →
ANDROID_HOMEisn't set. Quick fix: createfrontend\android\local.propertiescontainingsdk.dir=C\:\\Users\\<you>\\AppData\\Local\\Android\\Sdk(or setANDROID_HOMEand reopen the terminal). /health/protectedcall fails from the phone →EXPO_PUBLIC_API_URLis wrong (must be your LAN IP, notlocalhost), the backend isn't running, or port 8000 is blocked by the firewall.- Google sign-in button shows a notice → Google provider flow is wired later; email auth is the tested path.
- Full emulator/device setup + Android troubleshooting:
frontend/ANDROID-EMULATOR.md.
The header image and the screenshots are generated, so don't edit them by hand:
cd docs/readme
npm install --no-save --no-package-lock playwright && npx playwright install chromium # once
node shoot.cjs # re-shoot the prototype screens into docs/readme/screens/
python3 make_svg.py # rebuild vulcan.svg + vulcan-mobile.svgmake_svg.py reads the phase table in PLAN.md §10, so rerun it whenever a phase is ticked off.
MIT © 2026 Ashis Wadhwani




























