Skip to content

tahir-aijaz/student_management_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Management System

A web application for managing student records using Express, EJS, MongoDB, and RESTful routes.

Features

  • Add new students
  • View a list of students
  • Edit student details
  • Delete student records
  • Filter students by major
  • Form validation
  • Flash messages for user feedback

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Make sure MongoDB is running on your system
  4. Start the application:
    npm start
    
  5. For development mode:
    npm run dev
    

Technologies Used

  • Node.js
  • Express.js
  • MongoDB with Mongoose
  • EJS (Embedded JavaScript Templates)
  • Bootstrap 5
  • Method-Override (for PUT and DELETE requests)
  • Connect-Flash (for flash messages)
  • Express-Session

Project Structure

  • app.js - Main application file
  • models/ - Database models
  • routes/ - Application routes
  • views/ - EJS templates
    • partials/ - Reusable template parts
    • students/ - Student-specific views

RESTful Routes

Method Path Description
GET /students List all students
GET /students/new New student form
POST /students Create new student
GET /students/:id Show student
GET /students/:id/edit Edit student form
PUT /students/:id Update student
DELETE /students/:id Delete student

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published