Skip to content

🌴🏠Treehouse - Project 11 - Build a Course Rating API With Express

Notifications You must be signed in to change notification settings

anoopmundathan/course-rating-api

Repository files navigation

course-rating-api

Treehouse Project 11 - Build a Course Rating API With Express

REST API using Express. The API will provide a way for users to review educational courses: users can see a list of courses in a database; add courses to the database; and add reviews for a specific course.

AngularJS single page application will consume this RESR API. The AngularJS application includes views to display a list of courses, display the details for a course including reviews and ability to post/delete a review, create or update a course, register a user, and login a user.

REST API will include two main resources, “courses” and “users”, containing the following routes:

  • /api/courses

    • GET - Returns a list of courses
    • POST - Creates a course
  • /api/courses/:id

    • GET - Returns a single course
    • PUT - Updates a course
  • /api/courses/:courseId/reviews

    • POST - Creates a review for the specified course
  • /api/courses/:courseId/reviews/:id

    • DELETE - Deletes a review
  • /api/users

    • POST - Creates a user
  • /api/users/

    • GET - Returns the current user

screen shot 2017-02-26 at 11 56 21

Getting Started

Prerequisite

Node.js

MongoDB

Setup

$ git clone https://github.com/anoopmundathan/course-rating-api.git
$ cd course-rating-api

Install

$ npm i

Run

$ npm start

View application

http://localhost:5000

Project Resources

[Mongo Basics] (https://teamtreehouse.com/library/mongo-basics)

REST API Basics

Build a REST API with Express

[User Authentication with Express and Mongo] (https://teamtreehouse.com/library/user-authentication-with-express-and-mongo)

[Node.js Documentation] (https://nodejs.org/en/docs/)

Express Documentation

Mongoose Documentation

Mongoose Schemas (including Virtuals)

Mongoose Queries

Mongoose Validation

Mongoose Population

ironNode

ngInspector

AngularJS Batarang

Email Address Regular Expression That 99.99% Works

JSDoc

About

🌴🏠Treehouse - Project 11 - Build a Course Rating API With Express

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published