Static HTML/CSS/JS pages. No build step required. Each page talks to the backend (Flask) via fetch().
frontend/
├── index.html ← Home page
├── login.html ← Login (email / Google / phone)
├── register.html ← Registration with OTP
├── analyze.html ← Profile analysis form
├── results.html ← Scheme match results
├── dashboard.html ← User dashboard (saved schemes)
├── profile_setup.html ← Profile completion
├── css/
│ └── style.css
└── js/
├── api.js ← API_BASE, apiFetch(), logActivity()
└── auth.js ← Firebase init + syncWithBackend()
Make sure the backend is running first (port 5002), then serve the frontend:
cd frontend
python3 -m http.server 3000Open http://localhost:3000 in your browser.
Alternatively — open any
.htmlfile directly in your browser. The backend CORS config allowsnullorigin (file:// protocol) for local development.
The backend URL is set in js/api.js:
const API_BASE = "http://127.0.0.1:5002";Change this to your deployed backend URL when going to production.