Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodejs #12

Open
eduv2-prod bot opened this issue Mar 20, 2023 · 0 comments
Open

Nodejs #12

eduv2-prod bot opened this issue Mar 20, 2023 · 0 comments

Comments

@eduv2-prod
Copy link
Contributor

eduv2-prod bot commented Mar 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants