View Code? Open in Web Editor
NEW
This project forked from codefellows-seattle-javascript-401d23/09-persistence
09-persistence's Introduction
Lab 09: Vanilla REST API w/ Persistence
- fork this repository & create a new branch for your work
- 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
- students will learn how to save resource data to the file system for a layer of data persistence
- students will learn how to refactor commonly used coding constructs into custom helper modules
- Reference the file structure of this template for the configuration files you need and folder structure
README.md
- your
README.md
should include detailed instructions on how to use your API
- this should include documentation on how to access your API endpoints
- continue working on your vanilla REST API
- refactor your routes to be contained in a separate module (ex:
route/resource-route.js
)
- refactor your
res
messages & status codes to be contained in a separate module (ex: response.js
)
- refactor the
storage.js
module to use file system persistence
- use the
fs
module to create and read the associated data files
- the name of the file should contain the related resource id