O'Reilly logo

Node.js 6.x Blueprints by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required