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.


Siva Janapati is an Architect with experience in building Cloud Native Microservices architectures, Reactive Systems, Large scale distributed systems, and Serverless Systems. Siva has hands-on in architecture, design, and implementation of scalable systems using Cloud, Java, Go lang, Apache Kafka, Apache Solr, Spring, Spring Boot, Lightbend reactive tech stack, APIGEE edge & on-premise and other open-source, proprietary technologies. Expertise working with and building RESTful, GraphQL APIs. He has successfully delivered multiple applications in retail, telco, and financial services domains. He manages the GitHub( where he put the source code of his work related to his blog posts.

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 )

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: