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
GET /streams/stream-big-file
GET /streams/big-file
Note: non-blocking but load complete file in memory before sending to client.
GET /streams/stream-big-file-uppercase
return a big file using stream and transform to send manipulated content without writing to the disk.
GET /websocket/chat
send messages and receive message from other connected websocket client.