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 Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
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.
git clone https://github.com/your-username/numerano-feedback.git
cd numerano-feedbackCopy the example environment file in the server directory and update it with your credentials:
cp server/.env.example server/.envOpen server/.env and replace your_mongodb_atlas_connection_string with your actual MongoDB URI.
Run the following command to build and start the application:
docker-compose up --build- Frontend: http://localhost:5173
- Backend: http://localhost:8000
This project now includes BrainBuff, a weekly math/logic challenge generator powered by Google's Gemini API.
- Accessible at:
/brainbuff - Features: 5-minute timer, hints, and dynamic question generation.
This feature requires a valid Google Gemini API key.
- Get a key from Google AI Studio.
- Add it to
server/.env:Note: The system usesGEMINI_API_KEY=your_actual_api_key_here
gemini-2.5-flashfor generation.
Backend:
cd server
npm install
npm run devFrontend:
# In a new terminal
npm install
npm run devPOST /api/feedback: Submit feedback.GET /api/health: Health check.
.
├── server/ # Backend (Node.js/Express)
│ ├── config/ # Database configuration
│ ├── controllers/ # Route controllers
│ ├── models/ # Mongoose models
│ ├── routes/ # API routes
│ └── index.js # Entry point
├── src/ # Frontend (React/Vite)
├── docker-compose.yml # Docker orchestration
└── Dockerfile # Frontend Dockerfile