Creating the baseline applications

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:

  1. Open the terminal/shell and type:
          npm install -g generator-express
    
    
  2. Create a folder called chapter04.
  3. 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 2
  • Choose MVC for application type
  • Choose Swig for template engine
  • Choose None for CSS preprocessor
  • Choose None for database (later in the chapter, we will set ...

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.