INTRODUCTION TO NODE JS

Author

What is Node?

This blog will introduce you to the NODE. I will take you through Node and its environment set up for developing your first application. Node is an open-source, cross-platform runtime environment for executing the JavaScript code. For Node, you must be acquainted with JavaScript, HTML, and CSS and also have some familiarity with web applications and the MVC concept. Its built on the Google V8 JavaScript engine and V8 compiles JavaScript code to native machine code.

Before Node, JavaScript was only executed in browsers. In 2009 Ryan Dahl used an open-source Google V8 JavaScript engine to build Node as a runtime environment for JavaScript outside a browser.
So using Node it is possible to use JavaScript as a server-side language.
By using Node we can develop the MVC based web applications. With Node, however, you use JavaScript everywhere, on the server-side as well as on the client-side.

Setting up the Environment

I took the reference of the given link https://blog.udemy.com.
For developing a Node-based application there are a few tools, which we have to install in our system. Here is a list of some basic tools which we need for Node application.

Install Text editor to build your code. Here is a list of text editor which you can install on your system.
https://notepad-plus-plus.org/download/v6.8.5/
http://www.sublimetext.com/
Or you can use your Notepad editor.

Install MongoDB
https://www.mongodb.org/
After installing Mongo either you can run it from command prompt or window service.

Install Node
https://nodejs.org by going to the given link you will get NPM (Node Package Manager) on your machine. By using NPM we can download packages/modules in our applications.

Install Express Generator
Express Generator is a Node module that we use to scaffold (platform) an application. To install Express Generator open a new Command Prompt and run the given command

Npm install -g express-generator

Create a platform of your project which you want to develop using Node.
Enter the given command on command prompt after installing Express Generator,
Express project Name
Example: – express hello here hello is my project name.
Now open your project in your favorite text editor and the directory structure of your application will be like this:-

Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”