Skip to content

ckucera3/courses-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

courses-backend

Welcome to courses-backend, an express server setup to deliver information on Georgia Tech courses.

To run the server, navigate to the root directory of the application in the cli and run the command node app.js. It is configured to run locally on port number 8080.

Using the routes

Static Course Info

For a list of all courses:

/api/course

For accessing a list of courses from one subject:

/api/course/:subject

For example, /api/course/ACCT

For accessing a specific course:

/api/course/:subject/:number

For example, /api/course/ACCT/2101

Database Query

This app uses mongodb as its database type. The app assumes that the database has a collection called courses which contains documents of the following structure:

{
  "subject": "ACCT",
  "number": "2101",
  "description": "Short description.",
  "name": "Accounting I"
}

To access this data from the database, use the same queries used for the static info, with the following change to the route:

/api/db/course/...

For example, api/db/course/ACCT/2101

Course Critique Query

There is also a route that queries the coursecritique website:

/api/coursecritique/:id

For example /api/coursecritique/ACCT2101.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 71.0%
  • JavaScript 29.0%