Chinese Documentation : Application generator

The LoopBack application generator creates a new LoopBack application:

$ slc loopback

You will be greeted by the friendly Yeoman ASCII art (under the hood slc uses Yeoman) and prompted for:

  • Name of the directory in which to create your application.  Press Enter to create the application in the current directory.
  • Name of the application, that defaults to the directory name you previously entered.

The tool creates the standard LoopBack application structure.  See 项目结构参考 for details.

Icon

By default, a generated application exposes only the User model over REST. To expose other built-in models, edit /server/model-config.json and change the model's "public" property to "true". See model-config.json for more information.