Midterm Project

Due: 12:00pm (noon), Friday April 1, 2022

Description

The goal of this project is to develop a basic REST API. The theme of your project is up to you, but it must satisfy the following criteria:

Note: in order for ExpressJS to properly parse JSON in the body of the request (for the POST and PUT methods), a line similar to line 3 (depending on the name of the variable in line 2) below must be added to the code BEFORE any route handlers.

1 const express = require('express')
2 const app = express()
3 app.use(express.json({strict: false}))

Turning in the Assignment

For this assignment, you must turn in a zip file of a directory named midterm-project.zip containing the following files:

  1. index.js – the implementation of the API
  2. package.json
  3. pacakge-lock.json
  4. init_db.sql – SQL statements that create the appropriate tables and insert some initial data
  5. README.md – Documentation for the REST API

Submit the zip file to the appropriate folder on D2L.

Grading Criteria

Grading (out of 100 points):