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

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....

Node.js Creating Server With Routes

Node.js is a javascript based platform built in Chrome's javascript V8 engine. Creating web server in Node is easy. Node.js is light weight and fast performance It handle great number of simultaneous request at a same time. Node come with som...

Create and trigger event in Node.Js by EventEmitter class

EventEmitter Class in Node.JS: In Node.js we can create event and trigger them. With Node.JS we just start our server, declare our function and then bind them with event and fire. First we load the events module which is part of the Node.js...

Node.js: How to install Node.js on Ubuntu 14.04

This blog will help you to understand how to install node.js Install Node.js First update the apt-get package lists with this command: $ sudo apt-get update Now install the git package using apt-get $ sudo ...

Event Loop in node.js?

As we know that , Node js is a single threaded application but it also support concurrency based on concept of event and callbacks. Every api that we are doing using node.js are asynchronous and single thread,node js uses asynchronous fu...

error-first callback in node.js?

If user pass errors and data then we use Error-first callbacks .There are two argument in callbacks. first argument is always an error object which is for to check if something went wrong. and we use additional argument along with this paramete...

Middleware in Express JS

Middleware is the core idea of Express.js used behind processing the request and routing. By seeing how middleware functions, you can make more maintainble applications with less code. The minute a solicitation is gotten by an Express.js applicat...

Using MySQL with node.js

Hello Everyone , In this blog we will discuss about how to use MYSQL in node.js. node-mysql is one of the best modules which can be used for working with MySQL database. To install the MySQL in node.js driver you have to follow up with the be...

node is not recognized as an internal or external command in appium

I tried to run the Appium server from the command prompt but I got the error that "node is not recognized as an internal or external command". I executed the following command on the command prompt: node appium Solution: To start the App...

How to install node.js in Ubuntu

Please open the terminal and use below commands to install node.js sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs

How to solve [MongoError: connect ECONNREFUSED]

Hello Readers, I came across a solution while working on mongodb and would like to share with you all in case you face any such problem while working on mongodb. If you are coming across the error like the following: Connection error: {...

How to install Express.js in Ubuntu

Express.js is a framework that is use in the Node.js. It is having the Jade file which is similar to HTML file. To install Express first we have to include the express version in Package.json file. Inside Package.js { "name": "pong", ...

How to establish connection using Socket and Node.js

Hello Readers, The most important thing to use Node and Socket is to make connection. For this we should have two files one is Client.js(i.e. Client Side Javascript file) and other is Server.js(Server side javascript file). Under Client.js ...

How to install Node, NPM and others Node Module in Ubuntu

Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. In order to get this version, we just have to use the apt package manager. sudo apt-get install nodejs We need to ins...

Package.json file in Node.js

Hello Readers, To run the applications based on Node.js we need a "Package.json" file in the root directory. Package.json file tells the dependencies requires in the project. Without this file you cannot run the project. { "name" : "pong"...

How to create a server in Node.js

Hello Readers. Node.js is very popular in market in creating of real time applications.Here's the example of how we can create the server in our local system to run the Node.js applications. var http = require('http') , static = re...
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: