LoopBack makes it easy to build modern applications that require complex integrations.
Go to file
Miroslav Bajtoš fc0fad4a9f Add createModelFromConfig and configureModel()
Add new API allowing developers to split the model definition and
configuration into two steps:

 1. Build models from JSON config, export them for re-use:

  ```js
  var Customer = loopback.createModelFromConfig({
    name: 'Customer',
    base: 'User',
    properties: {
      address: 'string'
    }
  });
  ```

 2. Attach existing models to a dataSource and a loopback app,
    modify certain model aspects like relations:

  ```js
  loopback.configureModel(Customer, {
    dataSource: db,
    relations: { /* ... */ }
  });
  ```

Rework `app.model` to use `loopback.configureModel` under the hood.
Here is the new usage:

```js
var Customer = require('./models').Customer;

app.model(Customer, {
  dataSource: 'db',
  relations: { /* ... */ }
});
```

In order to preserve backwards compatibility,
`app.model(name, config)` calls both `createModelFromConfig`
and `configureModel`.
2014-06-12 10:41:44 +02:00
docs Delete api-model.md 2014-06-03 17:14:02 -07:00
example Fix client-server example 2014-05-07 15:23:26 -07:00
lib Add createModelFromConfig and configureModel() 2014-06-12 10:41:44 +02:00
templates Add password reset 2013-11-20 14:20:47 -08:00
test Add createModelFromConfig and configureModel() 2014-06-12 10:41:44 +02:00
.gitignore took google docs TOC and put into sdocs 2013-08-12 10:40:50 -07:00
.jshintignore Add .jshintignore 2013-11-21 19:49:35 +01:00
.jshintrc Add jshint configuration. 2013-11-20 09:20:10 +01:00
.travis.yml Remove old node versions from travis 2013-11-08 13:30:53 -08:00
CONTRIBUTING.md Add CLA 2014-04-25 08:44:03 -07:00
Gruntfile.js Add basic Remote connector e2e test 2014-04-14 12:25:41 -07:00
LICENSE Update README and license link 2014-04-28 10:57:26 -07:00
README.md Update README and the module diagram 2014-05-30 17:22:31 -07:00
docs.json Added middleware and API doc headings 2014-06-04 17:43:11 -07:00
index.js Initial client-server example 2014-03-27 14:47:29 -07:00
package.json package: upgrade Mocha to 1.20 2014-06-12 10:33:56 +02:00

README.md

LoopBack is a highly extensible, open source Node.js framework that enables you to:

  • Create dynamic end-to-end REST APIs with little or no coding
  • Easily access data from Oracle, MySQL, PostgreSQL, MS SQL Server, MongoDB, SOAP and other REST APIs
  • Incorporate model relationships and access controls for complex APIs
  • Run your application on-premises or in the cloud
  • Use built-in push, geolocation, and file services for mobile use cases
  • Easily create client apps using Android, iOS, and JavaScript SDKs

LoopBack consists of:

  • A library of Node.js modules.
  • A command line tool, slc, for creating and working with LoopBack applications.
  • Client SDKs for native and web-based mobile clients.

For more details, see http://loopback.io/.

LoopBack modules

In addition to the main LoopBack module, LoopBack consists of numerous other modules that implement specific functionality, as illustrated below:

LoopBack modules

Resources

Contributing

Please read CONTRIBUTING.md on how to contribute.

A brief guide for contributing to LoopBack projects.

Analytics