A simple MERN-style exam management system (backend + frontend) for creating exams, submitting answers, and viewing results.
backend/— Node/Express server and modelsfrontend/— React app
- Create and manage exams
- Student submissions and result viewing
- Simple authentication
- Backend: Node.js, Express, Mongoose
- Frontend: React
- Node.js (v16+ recommended)
- npm or yarn
- MongoDB (local or Atlas)
- Backend
cd backend
npm install
# create a .env with variables (example below)
node server.jsEnvironment variables (example .env):
PORT=5000
MONGO_URI=mongodb://localhost:27017/examdb
JWT_SECRET=your_jwt_secret
- Frontend
cd frontend
npm install
npm startBy default the frontend runs on http://localhost:3000 and will talk to the backend at the backend PORT configured above.
Basic routes live under backend/routes/ (/auth, /exams, /submissions). See the code for request/response shapes.
Feel free to open issues or PRs. Keep changes focused and add tests where appropriate.