New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@loopback/example-express-composition

Package Overview
Dependencies
Maintainers
7
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loopback/example-express-composition

LoopBack 4 REST API on Express

latest
Source
npmnpm
Version
8.0.11
Version published
Weekly downloads
16
-79.75%
Maintainers
7
Weekly downloads
 
Created
Source

@loopback/example-express-composition

This is an example of how to mount LoopBack 4 REST API on a simple Express application.

Setup

First, you'll need to install a supported version of Node:

  • Node.js at v10 or greater

Additionally, this tutorial assumes that you are comfortable with certain technologies, languages and concepts.

  • JavaScript (ES6)
  • REST

Lastly, you'll need to install the LoopBack 4 CLI toolkit:

npm i -g @loopback/cli

Tutorial

Once you're ready to start, you can begin by visiting the tutorial page.

Try it out

If you'd like to see the final results of this tutorial as an example application, follow these steps:

Generate the example using CLI

  • Run the lb4 example command to select and clone the express-composition repository:

    lb4 example express-composition
    
  • Jump into the directory and then install the required dependencies:

    cd loopback4-example-express-composition
    
  • Finally, start the application!

    $ npm start
    
    Server is running at http://127.0.0.1:3000
    

Feel free to look around in the application's code to get a feel for how it works.

Tests

Run npm test from the root folder.

License

MIT

Keywords

loopback-application

FAQs

Package last updated on 11 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts