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:
- ACL generator
- Application generator
- Data source generator
- Example generator
- Model generator
- Property generator
- Relation generator
- Swagger generator
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
.