- 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.eslintrcgulpfile.js.gitignoreREADME.md
- Create a single resource
expressAPI that can handle GET, POST, and PUT requests - Use the
http-errorsmodule to create new errors and associate them with a proper status code - Create an
error-middlewaremodule to handle errors and use it in your server file - Create a
cors-middlewaremodule that will allow for public use of your API - Create the
deleteItemandavailIDsmethods and add them to yourstoragemodule- 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, andfetchIDsstatic methods as part of yourNotemodel - Create a series of
note-route-teststo test your GET, POST, and PUT routes- hint: you'll want to use the
beforeandafterhooks provided bymochain order to create a test note and delete the note after the test has completed
- hint: you'll want to use the