Modify the app and router implementation, so that the middleware is executed in order defined by phases. Predefined phases: 'initial', 'session', 'auth', 'parse', 'routes', 'files', 'final' Methods defined via `app.use`, `app.route` and friends are executed as the first thing in 'routes' phase. API usage: app.middleware('initial', compression()); app.middleware('initial:before', serveFavicon()); app.middleware('files:after', loopback.urlNotFound()); app.middleware('final:after', errorHandler()); Middleware flavours: // regular handler function handler(req, res, next) { // do stuff next(); } // error handler function errorHandler(err, req, res, next) { // handle error and/or call next next(err); } |
||
---|---|---|
common/models | ||
docs | ||
example | ||
lib | ||
templates | ||
test | ||
.gitignore | ||
.jscsrc | ||
.jshintignore | ||
.jshintrc | ||
.travis.yml | ||
CHANGES.md | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE | ||
README.md | ||
docs.json | ||
favicon.ico | ||
index.js | ||
package.json |
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.
- 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.
For more details, see http://loopback.io/.
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
Components
Client SDKs
Tools
Examples
- loopback-example-app
- loopback-example-database
- loopback-example-datagraph
- loopback-example-full-stack
- loopback-example-office-supplies
- loopback-example-todo
- loopback-example-access-control
- loopback-example-proxy
- strongloop-community/loopback-examples-ios
- loopback-example-ssl
Resources
Contributing
Please read CONTRIBUTING.md on how to contribute.
A brief guide for contributing to LoopBack projects.