Skip to content

princetanwar/advance-nodejs

Repository files navigation

Run Locally

Clone the project

  git clone https://github.com/princetanwar/advance-nodejs.git

Go to the project directory

  cd advance-nodejs

Install dependencies

  npm install

Create Mock data for services.

  npm run create-mock

Start the dev server

  npm run dev

Routes Reference

Get A Big file using streams

  GET /streams/stream-big-file

Get A Big file using callback

  GET /streams/big-file

Note: non-blocking but load complete file in memory before sending to client.

Get A File using streams and transform

  GET /streams/stream-big-file-uppercase

return a big file using stream and transform to send manipulated content without writing to the disk.

Chat with other websocket client

  GET /websocket/chat

send messages and receive message from other connected websocket client.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published