Convention-based bootstrapper for LoopBack applications
Go to file
Miroslav Bajtoš 47b5bb5f5c Change models.json to configure existing models
Breaking change.

In the new 2.x project layout, definition of loopback Models is out of
scope of the boot process. The bootstrapper only configures existing
models - attaches them to a dataSource and the app object.
2014-06-10 09:21:15 +02:00
docs Change models.json to configure existing models 2014-06-10 09:21:15 +02:00
lib Change models.json to configure existing models 2014-06-10 09:21:15 +02:00
test Change models.json to configure existing models 2014-06-10 09:21:15 +02:00
.gitignore Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00
.jshintignore Custom rootDir for models and datasources 2014-05-27 14:49:11 +02:00
.jshintrc Initial commit 2014-05-23 15:51:20 +02:00
CHANGES.md Start CHANGES.md 2014-05-27 16:18:09 +02:00
CONTRIBUTING.md Initial commit 2014-05-23 15:51:20 +02:00
LICENSE Initial commit 2014-05-23 15:51:20 +02:00
README.md Change models.json to configure existing models 2014-06-10 09:21:15 +02:00
browser.js Implement compileToBrowserify and bootBrowserApp 2014-06-03 14:08:34 +02:00
docs.json Implement compileToBrowserify and bootBrowserApp 2014-06-03 14:08:34 +02:00
index.js Change models.json to configure existing models 2014-06-10 09:21:15 +02:00
package.json Implement compileToBrowserify and bootBrowserApp 2014-06-03 14:08:34 +02:00

README.md

LoopBack Boot

LoopBack Boot is a convention-based bootstrapper for LoopBack applications.

For full documentation, see the official StrongLoop documentation:

Installation

npm install loopback-boot

Usage

var loopback = require('loopback');
var boot = require('loopback-boot');

var app = loopback();
boot(app, __dirname);

app.use(loopback.rest());
app.listen();

See API docs for complete API reference.

Versions

The version range 1.x is backwards compatible with app.boot provided by LoopBack 1.x versions and the project layout scaffolded by slc lb project up to slc version 2.5.

The version range 2.x supports the new project layout as scaffolded by yo loopback.