- Fork this repository
- Write all of your code in a directory named
lab-
+<your name>
e.g.lab-brian
- Push to your repository
- Submit a pull request to this repository
- Submit a link to your PR in canvas
- Write a question and observation on canvas
package.json
.eslintrc
gulpfile.js
.gitignore
README.md
- Create a single resource
express
API that can handle GET, POST, and PUT requests - Use the
http-errors
module to create new errors and associate them with a proper status code - Create an
error-middleware
module to handle errors and use it in your server file - Create a
cors-middleware
module that will allow for public use of your API - Create the
deleteItem
andavailIDs
methods and add them to yourstorage
module- these methods should be used to delete a resource (
deleteItem
) and return an array of id's from persisted resource filenames (availIDs
)
- these methods should be used to delete a resource (
- Create the
updateNote
,fetchNote
, andfetchIDs
static methods as part of yourNote
model - Create a series of
note-route-tests
to test your GET, POST, and PUT routes- hint: you'll want to use the
before
andafter
hooks provided bymocha
in order to create a test note and delete the note after the test has completed
- hint: you'll want to use the