Nodejs Express application generator

Using the express generator tool we can quickly and easy create an application skeleton.

Install express generater

1installing-express-1generator

Use express -h for help

Creating Express application with express generator

syntax

eg

2-express-generater-my-app-1

It will create the folder structure and some required files

3-express-generater-my-appfolderstruct

Go inside your app folder and  execute npm install

after-executing-npm-install

It is ready to start the server

runninf-the-server

 

 

ref : https://expressjs.com/en/starter/generator.html

 

2 Likes
Author: bm on October 5, 2016
Category: NodeJs
Tags: , ,

Your comment:

Your Name

Comment:




Last articles