A REST API to communicate with PostgreSQL database and serve data to myCourses client.
npm install
npm start
Users
get
user info andpost
new users
Courses
get
courses associated with the currently authenticated userpost
new coursesput
updated course information (with user auth)delete
courses (with user auth)
User
firstName
is requiredlastName
is requiredemail
must be correctly formatted and unique among all userspassword
is required
Course
title
is requireddescription
is required
- All passwords are hashed using
bcrypt
with10 salt rounds
- Users are authenticated using
basic-auth
- User authentication is required to:
get
the active user's infoget
coursespost
a new courseput
an existing coursedelete
an existing course