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 application

Although we already used the Loopback framework, we strongly recommend that you install it again, to ensure that you will have the most up-to-date version on your machine:

 npm install -g loopback

In this example, we will not make many changes to the generated code, since our focus is to create building tasks, but we will use some interesting features of the Loopback framework using the command line:

  1. Open terminal/shell, and type the following command:
      slc loopback
    
  2. Name the application chapter-09.
  3. Choose empty-server (an empty LoopBack API, without any configured models or data source's) and press Enter.

Now we have created the application scaffold. Don't worry about the next commands suggested by the terminal output, ...

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