In this chapter, we will use a slightly modified version of the express-generator
that we used in previous chapters.
This generator is called generator-express
; it is heavily based on express generator
, but with a few more features.
Here are the steps for our installation:
Open the terminal/shell and type:
npm install -g generator-express
Create a folder called
chapter04
.Open your terminal/shell within the
chapter04
folder and type the following command:yo express
Now, fill the questions in this order:
Choose
N
, we already created the project folder in step 2Choose
MVC
for application typeChoose
Swig
for template engineChoose
None
for CSS preprocessorChoose
None
for database (later in the chapter, we will set up the database manually)Choose
Gulp
for LiveReload and other stuff
Tip
Don't worry about Gulp
, if you never heard about it. Later in the book, we will see and explain some building tools.
At the end of the generator, we have the...