How to install Node js & Express js Step by step Guide - WAY2IT

Latest Post :

How to install Node js & Express js Step by step Guide



Download the Node.js source code or a pre-built installer for your platform, and start developing today.





Installation Instruction For Windows Users :


1) Download & Install Node js + Git bash.

2) Create a separate folder for your projects and navigate inside it using the git bash. 

3) Install express using following command :
npm install express –save

4) Install express-generator module using following command :
npm install express-generator –g

5) To create a new express js app use the following command :
express <appname>

6) Now go to the project folder
cd <appname>

7) Use command npm install to install default packages

8) The generated app directory will look like :

├── app.js
├── bin
│   └── www
├── package.json
├── public
│   ├── images
│   ├── javascripts
│   └── stylesheets
│       └── style.css
├── routes
│   ├── index.js
│   └── users.js
└── views
   ├── error.jade
   ├── index.jade
   └── layout.jade

9) Run the app using comman
npm start (Inside project folder)

10) Go to browser and run to check if the app runs without any error

localhost:3000



Video Tutorial :