express-generator : Scaffolding Of Express Application

express generator node module

                                 In the last article we have created “Express” application and exposed REST services. There is a node module called “express-generator” which will provide scaffolding of node express application. Follow the below steps to create express application using “express-generator”.

Step 1: Install “express-generator” node module globally.

 npm install express-generator -g 

Step 2: Go to command prompt and create express application.

D:\>express sample-express-app 

After the application creation, you will see the folder structure as shown below.

Express Generator Application

Step 3: Now, go to the application folder which we created in above step and perform npm install. This will install all the node module dependencies.

D:\>cd sample-express-app
D:\sample-express-app>npm install

Step 4: Its time to start the node application by running npm start command. By default the server will run on 3000 port.

That’s it. The express application is ready. In the coming article we will see some of the node modules which I have used.

Advertisements

I am Siva Prasad Rao Janapati. Working as a software developer. Has hands on experience on ATG Commerce(DAS/DPS/DCS), Mozu commerce, Broadleaf Commerce, Java, JEE, Spring, Play, JPA, Hibernate, Velocity, JMS, Jboss, Weblogic,Tomcat, Jetty, Apache, Apache Solr, Spring Batch, JQuery, NodeJS, SOAP, REST, MySQL, Oracle, Mongo DB, Memcached, HazelCast, Git, SVN, CVS, Ant, Maven, Gradle, Amazon Web services, Rackspace, Quartz, JMeter, Junit, Open NLP, Facebook Graph,Twitter4J, YouTube Gdata, Bazzarvoice,Yotpo, 4-Tell, Alatest, Shopzilla, Linkshare. I have hands on experience on open sources and commercial technologies.

Tagged with:
Posted in Node.js

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

DZone

DZone MVB

Java Code Geeks
Java Code Geeks
%d bloggers like this: