Skip to content

express generator api

Vikas Tiwari edited this page May 5, 2018 · 3 revisions

express-generator is used to create default project template for the node js web projects, but when we are going to create an APi project, we don't require view engine and it's related files. however, we can find api projects on internet using express-generator to create base template. Few developers delete these view engine files like view folder and some other, but still it left a deep linking in the project and create issue at later point.

We will be creating our API project using express-generator-api.

Install the the generator globally

npm install -g express-generator-api

Create a repository from github with the project Name select .gitignore to Node and licence apache licence Initialize this repository with a README Click on create repository.


Download the repository on your local machine.


Clone this wiki locally