LoopBack makes it easy to build modern applications that require complex integrations.
Go to file
Miroslav Bajtoš f844459311 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 with loopback 1.x,
`app.model(name, config)` calls both `createModelFromConfig`
and `configureModel`.
2014-06-05 17:47:28 +02:00
docs Update README and the module diagram 2014-05-23 13:34:50 -07:00
example Merge latest from master 2014-05-20 14:31:09 -07:00
lib Add createModelFromConfig and configureModel() 2014-06-05 17:47:28 +02:00
templates Add password reset 2013-11-20 14:20:47 -08:00
test Add createModelFromConfig and configureModel() 2014-06-05 17:47:28 +02:00
.gitignore Rework replication test 2014-05-15 17:30:58 -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
CHANGES.md - Use the RemoteObjects class to find remote objects instead of 2014-05-19 15:56:26 -07:00
CONTRIBUTING.md Add CLA 2014-04-25 08:44:03 -07:00
Gruntfile.js Make app.get/app.set available in browser 2014-06-03 21:32:27 +02: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-23 13:34:50 -07:00
docs.json Merge latest from master 2014-05-20 14:31:09 -07:00
favicon.ico Upgrade to Express 4.x 2014-05-29 08:44:05 -07:00
index.js Initial client-server example 2014-03-27 14:47:29 -07:00
package.json Exclude express-middleware from browser bundle 2014-06-03 21:32:27 +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