Malekbenz

Hi, I'm MalekBenz. I author this blog, I'm FullStack Developer, create courses & love learning, writing, teaching technology. ( Javascript, C#, ASP.NET , NodeJS, SQL Server )

Install & run your first application Nodejs

Today We are going to install Nodejs and build our first application, of course a HelloWorld application.

What is Nodejs ?

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.

It means applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.

How to install Nodejs ?

To install nodejs go to Nodejs Official website and download Nodejs.

Node js website

After that launch the installer.

click next

Click next.

Next

Click install.

Install

Click Finish.

Finish

Add node to the system path variable.

Path

To confim that everything is ok, launch the (node.js command line) and type ‘node –version’

CMD

    $ node --version

Work with Nodejs

Create new file ‘app.js’ and type the code above:

    console.log("Hello World: ");

CMD

Run the application:

    $ node app.js

Congratulation! your first application is working

Comments