Page Contents

As a summary, we have explained how various features in LoopBack core modules can be useful for our developers to build a scalable Node.js application.

In addition, LoopBack can also be used as the framework to create microservices. The Twelve-Factor App methodology promotes some key architectural principles for building software-as-a-service applications. This section shows how the criteria of Twelve-Factor are satisfied by Node.js application powered by LoopBack.

  • Codebase: LoopBack application code can be committed to GitHub for the version control.
  • Dependencies: Dependency injection can be used to keep the construction of dependencies of a class or function separated from its behavior.

  • Config: LoopBack provides context-based configuration and pluggable configuration resolver.

  • Backing services: The concepts of services and datasources in LoopBack are the backing services for an application.

  • Build, release, run: LoopBack applications which are scaffolded by the CLI contains npm scripts to build and run the applications.

  • Processes: A LoopBack application can be deployed and run in a stateless Docker container. A Dockerfile is generated by default when scaffolding a LoopBack application.

  • Port binding: Export services via port binding is possible through the HTTP/HTTPS server within a LoopBack application with additional configurations.

  • Disposability: There are life cycle event observers and interceptors that you can add logic to maximize robustness.

Previous: Part 10 - Advanced recipes