├── .gitignore ├── README.md ├── package.json ├── src ├── database.js ├── middlewares │ └── json.js ├── routes.js ├── server.js └── utils │ ├── build-route-path.js │ └── extract-query-params.js └── streams ├── buffer.js ├── fake-upload-to-http-stream.js ├── fundamentals.js └── stream-http-server.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | db.json 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /src/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/src/database.js -------------------------------------------------------------------------------- /src/middlewares/json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/src/middlewares/json.js -------------------------------------------------------------------------------- /src/routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/src/routes.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/src/server.js -------------------------------------------------------------------------------- /src/utils/build-route-path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/src/utils/build-route-path.js -------------------------------------------------------------------------------- /src/utils/extract-query-params.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/src/utils/extract-query-params.js -------------------------------------------------------------------------------- /streams/buffer.js: -------------------------------------------------------------------------------- 1 | const buf = Buffer.from("hello") 2 | 3 | console.log(buf.toJSON()) 4 | -------------------------------------------------------------------------------- /streams/fake-upload-to-http-stream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/streams/fake-upload-to-http-stream.js -------------------------------------------------------------------------------- /streams/fundamentals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/streams/fundamentals.js -------------------------------------------------------------------------------- /streams/stream-http-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-01-fundamentos-nodejs/HEAD/streams/stream-http-server.js --------------------------------------------------------------------------------