Allow LoopBack applications to configure multiple User models and share the same AccessToken model. To enable this feature: 1) In your custom AccessToken model: - add a new property "principalType" of type "string". - configure the relation "belongsTo user" as polymorphic, using "principalType" as the discriminator 2) In your User models: - Configure the "hasMany accessTokens" relation as polymorphic, using "principalType" as the discriminator When creating custom Role and Principal instances, set your User model's name as the value of "prinicipalType". |
||
---|---|---|
.github | ||
common/models | ||
docs | ||
example | ||
intl | ||
lib | ||
server/middleware | ||
templates | ||
test | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.nycrc | ||
.travis.yml | ||
CHANGES.md | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE | ||
README.md | ||
docs.json | ||
favicon.ico | ||
index.js | ||
package.json |
README.md
LoopBack
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.
- Access data from Oracle, MySQL, PostgreSQL, MS SQL Server, MongoDB, SOAP and other REST APIs.
- Incorporate model relationships and access controls for complex APIs.
- Use built-in push, geolocation, and file services for mobile apps.
- Easily create client apps using Android, iOS, and JavaScript SDKs.
- Run your application on-premises or in the cloud.
LoopBack consists of:
- A library of Node.js modules.
- Yeoman generators for scaffolding applications.
- Client SDKs for iOS, Android, and web clients.
LoopBack tools include:
- Command-line tool
loopback-cli
to create applications, models, data sources, and so on.
For more details, see http://loopback.io/.
Supported versions
Current | Long Term Support |
---|---|
3.x | 2.x |
Learn more about our LTS plan in docs.
LoopBack modules
The LoopBack framework is a set of Node.js modules that you can use independently or together.
Core
Connectors
- loopback-connector-mongodb
- loopback-connector-mysql
- loopback-connector-postgresql
- loopback-connector-rest
Enterprise Connectors
Community Connectors
The LoopBack community has created and supports a number of additional connectors. See Community connectors for details.
Components
Client SDKs
Tools
Examples
StrongLoop provides a number of example applications that illustrate various key LoopBack features. In some cases, they have accompanying step-by-step instructions (tutorials).
See loopback-example for details.
Resources
Contributing
Contributions to the LoopBack project are welcome! See Contributing to LoopBack for more information.
Reporting issues
One of the easiest ways to contribute to LoopBack is to report an issue. See Reporting issues for more information.