Node.js: Introduction to Node.js, Events, and Streams
Simple example simmulating a task processing and ending when is finished using events.
Node server example for uploading file
Node echo server
Server:
npm start
Client:
curl localhost:8000
Node log file server or upload file
Server:
npm start
Client:
curl -d 'Text to send to the log file' localhost:8000
curl --upload-file log_client.txt localhost:8000
File upload (only .jpg) server with progress
npm start
Client:
curl --upload-file test.jpg localhost:8000