You will be building a few APIs using Express and Bookshelf.js, a Node ORM. Use dotenv to store your database credentials, and make sure your .env file isn't committed to your repo.
Rebuild question 1 from the previous assignment using Bookshelf.js. It is fine if the JSON response contains extra attributes like createdat, updatedat, etc.
Rebuild question 2 from the previous assignment using Bookshelf.js. It is fine if the JSON response contains extra attributes like createdat, updatedat, etc.
Create an endpoint that allows you to create a new review in the database. Use Bookshelf.js. The request payload should contain the book_id, headline, body, and rating. The response should contain the newly generated review (all fields including the ID). It is fine if the JSON response contains extra attributes like createdat, updatedat, etc.