This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
The repo now includes an Express backend in backend/ for the AI chat and core app resources. It uses Firebase Admin with Firestore for persistence and Firebase Auth tokens for protected routes.
Available routes:
POST /api/auth/register/mentorPOST /api/auth/register/menteePOST /api/auth/verify-tokenGET /api/auth/meGET /api/healthGET /api/mentorsGETandPOST /api/sessionsGETandPOST /api/contactPOST /api/ai/mentor-response
Frontend notes
- Mentor cards now show a short "Why this mentor?" breakdown when the backend returns
breakdowndetails. The breakdown explains which signals contributed to the recommendation (course match, skills, shared vibes, availability score). - The AI Command Center sends free-text questions to
/api/ai/mentor-responseand displays the assistant reply in the chat UI.
Setup:
- Copy backend/.env.example to
backend/.envand set the Firebase project and service-account fields plusGEMINI_API_KEY. - Run
npm run backend:devfrom the repo root. - Keep the Vite frontend running with
npm run dev;/apirequests are proxied tohttp://localhost:3001in development.
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.