LoopBack 4 comes with the following example projects:
hello-world:An example showing how to set up a simple application using LoopBack 4.
context:Standalone examples showing how to use
@loopback/context
as an Inversion of Control (IoC) and Dependency Injection (DI) container.rpc-server:An example showing how to implement a made-up RPC protocol.
greeter-extension:An example showing how to implement the extension point/extension pattern.
greeting-app:An example showing how to compose an application from component andcontrollers, interceptors, and observers.
loopback4-example-shopping:An online e-commerce demo to validate/test the LoopBack 4 framework readiness.
You can download the example projects using our CLI tool lb4
:
lb4 example <example-name>
For example, the following command downloads the hello-world
example intoloopback4-example-hello-world
.
lb4 example hello-world
Please follow the instructions inInstall LoopBack4 CLI if you don’thave lb4
installed yet.