Vets-Who-Code/js-web-path-fitzcodes

Nodejs

Opened this issue · 0 comments

Task Create an API that uses the file system as a database
Conditions Nodejs and Nextjs are installed and configured
Standards In your folder create a file that will be your "database" name it with the file extension .json. In the pages/api folder have the following:
  • 1 file that reads and returns the state of the database.
  • 1 file that can delete data in the database.
  • 1 file that can create/update data in the database

Notes

  • Recommend using fs/promises API as it's simpler than the callbacks API

References