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.
Fahad
- View all available courses.
- Register for classes.
- Drop registered classes.
- View registered courses.
- Backend:
- JavaScript/Node.js
- MongoDB for database
- Frontend:
- React.js
-
/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.
- Student:
- studentID
- name
- registeredCourses
- Course:
- courseID
- courseName
- department
- timeOfDay
git clone https://github.com/fahad-ali1/course_registration_system
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)
cd front-end
npm install
npm start