Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Why Is Node.js web Development is Crucial for Enterprise Applications?

Ever since it first appeared back in 1995, JavaScript has been one of the top 3 programming languages.   Stats say that 95.1% of websites currently use it.   However, despite its obvious domination and ubiquitousness, Java...

What is setImmediate in nodejs

Today I am going to write a short note on setImmediate, hope you will understand how setImmediate works in nodejs.     setImmediate Once the current poll phase is completed, setImmediate will execute. After all the tasks...

6 Easy Steps to Build Node.js APIs with TDD Methodology

TDD (Test-Driven-Development) is getting popular day by day defining its needs in greater code testing. This process is a test which we define to get an output by applying to our library, API etc. Day by day Nodejs is now developing as a language...

Top 15 Effective Node.Js Tools Web Developers Shouldn't Miss

Node.js has evolved as one of the most popular Javascript platforms to develop networking and real-time web applications. One of the many reasons why node.js is popular among the developers is that it has many tools and frameworks available for d...

How to Create RESTful API using NodeJS & MongoDB

So the first question will come in your mind is, What is REST?   Well, REST is an abbreviation for “representational state transfer”. It is an architectural style and also can be defined as an approach to communication...

Node.js Installation Guide for Ubuntu 14.04 Server - 4 Quick Steps

Node.js is a JavaScript runtime platform built by Chrome, it Lightweight and much efficient then other platform which build scalable network application very quickly that's why it is very famous and majorly used in today's time. S...

How To Open Node.js Command Prompt/Terminal in Mac

How to open node.js command prompt in mac JavaScript is revered as one of the leading programming languages across the globe. As it is built into the majority of web browsers, web designers and programmers use JavaScript to add new designs and...

How to Get Current Directory in Nodejs

In my previous blog, I have shared the insights about the step-by-step guide to open Node.js command prompt in Ubuntu. Later that evening, I received a query regarding ‘ways to get the current directory in the Node.js’. I thought o...

4 step guide to open Node.js command prompt in Ubuntu

In the previous article, one of my colleagues has shared 6 easy steps to install Node.js on Linux Ubuntu. I’ll take a step forward and explain in a straightforward way to open a Node.js command prompt in Ubuntu. We will use Ubuntu “Ad...

6 Easy Steps to Install Node.js on Linux Ubuntu

Node.js is a JavaScript runtime built on chrome’s V8 engine. It is efficient and lightweight as it uses a non-blocking, event-driven Input/Output model. npm or the Node.js’ package system is amongst the biggest open source libraries. ...

How to Read Command-line arguments in Node.js

When a program starts the parameters or arguments send to the program using command prompt called Command-line argument or command-line parameter. A program can have many command-line arguments. We can alter the operation of program with command-...

How to convert Csv file data to Json in Nodejs?

To convert CSV file data to JSON in NodeJs we will be using csvjson module package of npm for the conversion. npm is basically the package manager which provides the JavaScript runtime environment in the Node.js.   Installation: ...

How to Send Emails Using Nodemailer in Nodejs?

For sending emails using Nodejs we will be using The Nodemailer module. Nodemailer is a module that provides sending emails from the NodeJs application.   Here are some features of the Nodemailer module:   1) Zero Depende...

Update Node.js and npm to latest version in 4 Easy steps

  Node Package Manager or NPM is the default package manager for JavaScripts that offers offers two prominent functionalities:   Online storage facility for the node.js modules that are searchable on search.nodejs.org The ...

Node.js authentication with passport local

In node.js authentication and login could be a difficult task but there are some modules available in node that makes it easier for a node developer. One of them is Passport. Passport is a middleware that allows us to authenticate using username...

File Upload in Node.js

Form processing and file handling are very common and important part of any web application. Now with express, handling file uploads becomes very easy. So far we have seen and used req.body now we have req.files. req.files contains all the inform...

Hooks In Node.js

Hooks are used to add any functionality before or after our JavaScript methods like save, create etc. Using hooks we are able to write the code that can be run before or after save method. Suppose you have a User model, in that you have a pass...

Node.js with Mongoose

Mongoose is similar to ORM( Object relational mapper) in many other languages. It is a node.js package that provides mongoDB object mapping. So basically mongoose converts the data in the database to the javascript objects that can be used in our...

Express-session in Node.js

For any web application session handling is very important part.Using sessions we can easily track user's activity throughout the application. If we are using express in our node application, setting up a session becomes very easy. Here we ...

Express validator

Express-validator is a node's middleware that can be used as form validation or we can say to validate the body, params, query, headers and cookies of request object. It has its own validation rule, and if any of the applied validation rule i...

Event loop in Node.js

In all the event driven programming, there is a main loop that listen's the events, and then invoke the corresponding callback function whenever one of those events occur. Here we might get confuse between events and callback, But the di...

Callbacks in node.js

The basic idea behind using callback is that if we are doing a task and it is taking a longer time to complete. So instead of waiting for this task to be complete we want our node server to process other incomming request.In such situations we ca...

Aynchronous Routing in ember js

It is not possible to have two db queries in model hook of ember js router. You can either create two router files- one for fetching the new records from database and the another one for fetching record. That is not a good approach to create...

How to use mocha for unit testing in node?

mocha is a javascript test framework. It works well for both node.js and browser. It makes asynchronous testing simple and easy. Mocha test run serially. mocha is open source. Installing mocha globally: npm install -g mocha With the ab...

Start project with npm init - Node.js

NPM's init command will scaffold out a valid json file for you project. The commands for npm init are:- mkdir myapis cd myapis npm init --yes I have used --yes option with the above command, because I don't want to set author...

Express application generator

As we know Express is the most commonly used web framework in node.It has many features such as rendering, routing and REST controls. But in this post we are going to discuss about express-generator. Express-generator is a application generator ...

Using Webstorm For NodeJS

Webstorm is an IDE developed by JetBrains in order to help quick development with Javascript.  To start using Webstorm on linux machine we...

node-sass css preprocessor for scss to css conversion

Sass stands for "Syntactically Awesome Style Sheets". It is compatible with all CSS versions available. If your CSS is getting complex, harder to maintain, here you can take the help of preprocessor.  Sass allows you to create v...

Events and emitters

Node.js comes with lots of core modules one of them is events module. We use EventEmitter in node js to create custom events and to react those custom events. It is something similiar as jQuery events:- element.on('click', function(msg) { ...

NodeJS and MongoDB

Node.js which make use of chrome v8 engine can be used for building fast, scalable network applications. It is based on event-driven and non-blocking I/O model thus making it lightweight and efficient and most suitable for real time application. ...

What is callback hell?

Callback hell is the nesting of callbacks that is one callback inside another. Callback hell is very bad thing in nodejs, you should always avoid it.   To avoid callback hell you can: 1) Break callback into individual function 2)...

Authentication using JSON Web Token (jwt) in node.js

Authentication is one of the big part of any application. JSON web token is one of the safest medium of transferring information between two parties. The token is a long encryped string that has 3 parts-   The headers  - It contai...

Promises in node.js

Promises are the alternatives of callbacks for delivering the results of asnchronous computations. From the implementation point of view callbacks are easier to implement, promises need some efforts. A promise is used for asynchronous calculation...

Event Emitters in node js

Event emitter in node js? Event Emitter is a class that is in event module. Event emitter simply allows you to listen for "events" and assign actions to run when those event occur. If you are familiar with front end development then...

Callback in node.js

A callback is a function which is highly used in node js. When we want to run any task after the success or completion of a given task then we will use a callback. We will write maximum API in such a way that they will support callback. I will...

Introduction to Node.js

Introduction   Node.js is an open source, cross platform JavaScript runtime built on top of Google's V8 JavaScript Engine . It was originally written by  Ryan Dahl. Node.js uses an event driven  nonblocking I/O model that...

Callbacks in Node.js

Node.js depend on the asynchronous code to do the execution fast so having dependable callbacks is very crucial. Callback functions is called at the completion of any task. In node, code is dependent on callback, so that every thing execute fast....
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: