- Setup Clone the repository and from inside the repository directory run:
npm install
-
Finish the
POST
route for/api/products
. Use POSTMAN to create some products. Hint: Find the error inmodels/product
-
Fix
index.ejs
to render actual products from our database. You will need to update the route inserver.js
that servesindex.ejs
. -
Finish the AJAX method in
app.js
to allow us to create a new product with the form. Watch out for incorrectly named variables.