Skip to content

codefellows-javascript-401d17/09-vanilla_api_persistence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

cf Lab 09: Vanilla REST API w/ Persistence

Submission Instructions

  • fork this repository & create a new branch for your work
  • write all of your code in a directory named lab- + <your name> e.g. lab-susan
  • 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

Learning Objectives

  • 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

Requirements

Configuration

  • package.json
  • .eslintrc
  • .gitignore
  • 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

Feature Tasks

  • 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

About

09 - Vanilla REST API w/ Persistence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published