Open
Description
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:
|
Notes
- Recommend using
fs/promises
API as it's simpler than the callbacks API