Convention-based bootstrapper for LoopBack applications
Go to file
Miroslav Bajtoš b887b33b57 compiler: Move model-sources cfg to models.json
Remove `modelSources` option from `boot()` options, add `_meta.sources`
to `models.json`.

```json
{
  "_meta": {
    "sources": ["./custom/path/to/models"]
  },
  "Car": {
    "dataSource": "db"
  }
}
```
2014-06-16 16:41:12 +02:00
docs compiler: Move model-sources cfg to models.json 2014-06-16 16:41:12 +02:00
lib compiler: Move model-sources cfg to models.json 2014-06-16 16:41:12 +02:00
test compiler: Move model-sources cfg to models.json 2014-06-16 16:41:12 +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 Rework model configuration 2014-06-13 19:40:52 +02:00
package.json package: Bump up the version to 2.0.0-dev 2014-06-16 16:38:28 +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.