Guruji Point - Code You Want To Write

  • Home
  • Asp.Net
  • WCF
  • SQL
  • Type Script
  • AngularJS
  • Tech News
  • Blog
  • Earn Online

Saturday, 12 May 2018

Start With Node.Js And Build Node.js With VS Code

 No comments   

Introduction
In this article we will learn about the Node.js. What is Node , Why node is important, why node is playing an important role in today's app developments.  Programe using Node code.

What is Node Js

Node.js is a server-side platform built on Google Chrome's JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009 and its latest version is v0.10.36. 
Node.js is an open source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.

The main idea of Node.js: use non-blocking, event-driven I/O to remain lightweight and efficient in the face of data-intensive real-time applications that run across distributed devices.

What is Special in Node Js
JavaScript’s rising popularity has brought with it a lot of changes, and the face of web development today is dramatically different. The things that we can do on the web nowadays with JavaScript running on the server, as well as in the browser. We can run Javascript code on server by using Node. 

Start with Node Js

Node.js is a platform for building fast and scalable server applications using JavaScript. Node.js is the runtime and NPM is the Package Manager for Node.js modules.

Requirements

To start with Node.js at first you need to Download the NodeJs Installer. You can download it from their Official Website of Node.

The Second step is to download the VS Code to write the Javascript code of  Node. 

Write your Code

Let's get started by creating the simplest Node.js application and Print "Test Node By Gurujipoint"..

Goto start menu and Open Node.js Command Prompt. 

Change the path by pressing cd.. on the command prompt, just like the cmd.

Now create a Folder where you will put your code file. In my case I created a folder named "MyNodeProject".




Now Open VS Code to write your JS code.

Create a New File and write a simple Print msg programe in it and saved it as App.js  or whatever you want. 

Note : - Here one thing to remember that Save your App.js file on the same folder which u already create by using mkdir command. In my case folder is "MyNodeProject".



Run your Node code -

Now again go back to Node.js command prompt.  Locate to your file Location and type 
node App.js. You can run your file by using node and your Js filename.






  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Facebook Updates

Guruji Point

Categories

Comman table Expression in SQL Dynamic Grid Row IQueryable in c# Learn AngularJS Scope_Identity() Use of indexes comma seperated string in sql row_number() and dense_rank() salary table structure. while loop in sql why do we need cursor why tuple used

About Us

This blog is about the Programming ,Tech News and some intresting facts related Contents. Here you can find fundamental and expert level topic of programming languages very practically related to C# , Asp.Net ,Sql-Server, JavaScript, Jquery, WebServices And also Web-Api, WCF ,WPF, Angular Js.

Contact Us

Email Us - gurujipoints@gmail.com
Contact- 8077657477

Reach Us

Copyright © Guruji Point - Code You Want To Write