A modern student management system built with the MERN stack (MongoDB, Express.js, React, Node.js).
- Node.js (v14 or higher)
- MongoDB Atlas account
- Git
- Clone the repository
git clone <your-repo-url>
cd student-portal- Backend Setup
cd backend
npm installCreate a .env file in the backend folder with:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
- Frontend Setup
cd ../frontend
npm install- Running the Application
Backend:
cd backend
npm startFrontend:
cd frontend
npm run devVisit http://localhost:5173 in your browser.
- 👤 User Authentication (Login/Register)
- 📋 Student Profile Management
- 📊 Academic Performance Tracking
- 📈 Grade Calculation System
- 📅 Attendance Tracking
- React (Vite)
- React Router for navigation
- Axios for API calls
- Tailwind CSS for styling
- Node.js & Express.js
- MongoDB with Mongoose
- JWT for authentication
- CORS for cross-origin requests
-
Auth Routes
- POST
/api/auth/register- Register new user - POST
/api/auth/login- User login
- POST
-
Profile Routes
- GET
/api/profile- Get user profile - POST
/api/profile- Create/Update profile
- GET
-
Dashboard Routes
- GET
/api/dashboard- Get dashboard data
- GET
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secure_secret_key
PORT=5000
- Backend is deployed on Render
- Frontend is deployed on Vercel
- Grades are automatically calculated based on marks
- Profile updates are reflected immediately on dashboard
- JWT token expires in 1 hour for security
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a pull request