Skip to content

Build rest API in the vanilla mode with node streams and data persist with json file.

Notifications You must be signed in to change notification settings

HenriqueStocco/42-for-free-ignite-rocketseat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 hours for free Ignite Rocketseat - Node.js middle level

Creation of the Rest API in vanilla mode, without installing third-party libraries.

Content learned

  • What is a stateless and statefull app.
  • What Streams are and how they work (basically).
  • What is ReGex are and how to use it (i didn't really uderstanding).
  • How to create a persistent database in a JSON file.
  • What middleware is and what it's used for.

Tech used (Node.js built-in/core)

  • http
  • randomUUID
  • ReGex (no need to import)
  • stream
  • Buffer (no neeed to import)

How to use just clone

$ git clone <this_project>

$ cd node-middle-knwoledge

$ pnpm init

$ pnpm dev

Note

I've used REST Client extension in vscode for the endpoint test.

About

Build rest API in the vanilla mode with node streams and data persist with json file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published