express-generator : Scaffolding Of Express Application

express generator node module

                                 In the last article, we have created the “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 an 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 the 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 the 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.

I am Siva Prasad Rao Janapati. Working as Technical Architect. 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: Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.



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