Chinese Documentation : Command-line reference (slc loopback)

Icon

Prerequisite: Install StrongLoop software following the instructions in LoopBack初级教程.

Use the slc loopback command to create and scaffold applications.  Scaffolding simply means generating the basic code for your application.  You can then extend and modify the code as desired for your specific needs.

The slc loopback command provides an Application generator to create a new LoopBack application and a number of sub-generators to scaffold an application:

Icon

The slc command has many additional sub-commands not specific to LoopBack for building, deploying, and managing Node applications. See Operating Node applications for more information and Command-line reference for the command reference.

Under the hood, slc loopback uses uses Yeoman. If you are already using Yeoman and are comfortable with it, you can install the LoopBack generator directly with

npm install -g generator-loopback.

Then everywhere the documentation says to use slc loopback just use yo loopback instead. For example, to create a new model, use yo loopback:model.