Loopback
Developer(s) | StrongLoop |
---|---|
Repository | github |
Written in | Node.js, TypeScript |
Engine | |
Platform | Cross-platform |
Type | Application framework, Web framework |
License | MIT License |
Website | loopback |
As of | April 2020 |
Search Loopback on Amazon.
LoopBack is an object-oriented application framework by StrongLoop, built on top of Express.js, and released as a free and open source software under the MIT License. Initially written atop pure Node.js and only as an application programming interface (API) framework, it has since been rewritten in LoopBack 4 to be usable as a general framework for developing Node.js applications.
LoopBack 4 is written in TypeScript and consists of several loosely-coupled Node.js packages. It is designed to be a highly-extensible framework to develop web APIs and other microservices. This would allow developers to use different parts of the framework in other Node.js applications beyond creating APIs.
All versions of LoopBack use LoopBack Datasource Juggler as the default object-relational mapping (ORM) interface. However, LoopBack 4 provides well-defined extension points (better known as interfaces) to integrate other ORMs such as TypeORM.
IBM API Connect is a commercial offering that leverages LoopBack and provides full API lifecycle management.
LoopBack 4[edit]
LoopBack 4 (with the exception of LoopBack Datasource Juggler) is a complete rewrite of the framework to counter the growing technical debt that was hampering extensibility. It also has first-class support for OpenAPI Specification v3.0.0.
Use of Express.js[edit]
While LoopBack 4 is still built around Express.js to re-use existing features (like previous versions), it does not directly expose the API (unlike other frameworks such as Feathers.js). Instead, it provides higher-level abstractions such as Sequences, Models and Controllers. However, extension points are available to add Express.js middleware into a Sequence or Interceptor, and to mount Express.js routers onto an Application route.
Dependency injection[edit]
LoopBack 4 also comes with its own dependency injection system and Inversion of Control container called LoopBack Context. It is a loosely-coupled, independent Node.js package that can also be used outside of the LoopBack ecosystem. It can also be used in tandem with LoopBack Metadata to leverage the decorator pattern.
LoopBack Datasource Juggler[edit]
LoopBack Datasource Juggler (shortened to "Juggler") is a fork of JugglingDB and the default ORM used in LoopBack.
References[edit]
Category:Node.js Category:Object-oriented programming
This article "Loopback" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Loopback. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
This page exists already on Wikipedia. |