A full-stack MERN (MongoDB, Express.js, React.js, Node.js) application for managing student records with CRUD operations.
- Add new student records
- View a list of students
- Edit existing student information
- Delete student records
- Upload student data via Excel file
- Search functionality
- User authentication
- White and forest light green theme
- Node.js with Express.js
- MongoDB with Mongoose
- RESTful API architecture
- React.js
- React Router for navigation
- Bootstrap for styling
- Axios for API calls
- React Toastify for notifications
- ID
- First Name
- Last Name
- Date of Birth
- Department
- Enrollment Year
- Status (Active/Inactive)
- Node.js (v14 or higher)
- MongoDB (local installation or MongoDB Atlas account)
-
Navigate to the server directory:
cd server -
Install dependencies:
npm install -
Create a
.envfile with the following variables:PORT=5000 MONGO_URI=mongodb://localhost:27017/student-management-system -
Start the server:
npm start
-
Navigate to the client directory:
cd client -
Install dependencies:
npm install -
Start the React application:
npm start -
Open your browser and go to
http://localhost:3000
GET /api/students- Fetch all studentsGET /api/students/:id- Fetch a student by IDPOST /api/students- Add a new studentPUT /api/students/:id- Update student informationDELETE /api/students/:id- Delete a student
The application includes:
- Login page
- Home dashboard
- Student listing page
- Add student form (manual entry and file upload)
- Edit student form