Upload an image to amazon S3 bucket with Sails Js.

Hello guys, In this blog, we will discuss how to upload an image to Amazon s3 bucket. Amazon s3 provide online storage service. In the Amazon s3 data stored in the bucket. A bucket is just like a folder which contains your data for this we have to create an Amazon web...

Working with Moment.js library in Node.js

Hello All, Today, I am going to representing front of  you how to work with Moment.js library in Node.js. What is Moment.js ? Moment.js is a Javascript library for parsing, validating, manipulating, formatting and displaying dates and times. Why use Moment.js ? It...

Send Email when an Error Occurs in Sails.js

We can use the log4js library for logging errors. Log4js is a light-weight and flexible plugin. To install this plugin in our application, we will run the following command in the terminal: npm install log4js 1 npm install log4js After installation of this plugin, we...

Building a TCP Client in NodeJs

Building  TCP Client Hello All, TCP is one of the most used transport protocols on the Internet, on top of which sit application protocols like HTTP. TCP is a connection-oriented protocol, which means that one endpoint requests and establishes a dedicated connection...