In this post i am going to show you, How to install nodejs express framework using express generator tool.
This tool will automatically create express framework skeleton for your application with default templating engine jade Where we use jade for html markup.
I assume that you already have npm and nodejs installed in your system.
How to install nodeJs
Install express-generator globally using npm
$ sudo npm install express-generator -g
$ express -v
Now time to create your first app using express generator.
Now go to your first-app directory and run npm install
$ cd first-app $ npm install
Finally time to run your first express application on browser. hit below command on terminal
$ node app.js
Go to your web browser and hit your localhost url with port 5000.
Hope this tutorial will help you to setup express framework in your system.