Skip to content

fahad-ali1/course_registration_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Course Registration System

A web application for managing course registrations. This application allows students to view available courses, register for classes, drop registered classes, and view their registered courses.

Author

Fahad

Features

  • View all available courses.
  • Register for classes.
  • Drop registered classes.
  • View registered courses.

Technologies Used

  • Backend:
    • JavaScript/Node.js
    • MongoDB for database
  • Frontend:
    • React.js

Screenshots

Screenshot 2024-02-15 at 7 15 19 PM Screenshot 2024-02-15 at 7 15 50 PM Screenshot 2024-02-15 at 7 15 41 PM

URLs

  • /courses/: Get all available courses.

  • courses/:courseID: Get a single course.

  • /students/:studentID/courses/:courseID/enroll: Enroll in a given course.

  • /students/:studentID/courses/:courseID/unenroll: Unenroll in a given course.

  • /:studentID/courses': Select registered courses for given student.

  • /students: Get all students.

  • /students/:studentID: Get a single student.

Models

  • Student:
    • studentID
    • name
    • email
    • registeredCourses
  • Course:
    • courseID
    • courseName
    • department
    • timeOfDay

Installing

git clone https://github.com/fahad-ali1/course_registration_system

Installing the back-end

Install dependencies

cd back-end
npm install

Set up the database

mongosh
use course_register
db.createCollection("students")
db.createCollection("courses")

Json files located in home directory

var studentsArray = JSON.parse(json_documents/students.json)
var coursesArray = JSON.parse(json_documents/courses.json)

Insert the json objects

db.students.insertMany(studentsArray)
db.students.insertMany(coursesArray)

Installing the front-end

cd front-end
npm install
npm start

About

Full stack application with React and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published