loopbackjs Getting started with loopbackjs

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


This section provides an overview of what loopbackjs is, and why a developer might want to use it.

It should also mention any large subjects within loopbackjs, and link out to the related topics. Since the Documentation for loopbackjs is new, you may need to create initial versions of those related topics.

Installation & Getting started


To install the LoopBack command-line interface (CLI) tool:

npm install -g loopback-cli

This installs the lb command-line tool for scaffolding and modifying LoopBack applications.

Create new application:

To create a new application:


The LoopBack application generator will greet you with some friendly ASCII art and prompt you for the name of the application. Simply answer questions asked by tool to create an application.

Create first model:

Go into your new application directory, then run:

lb model

Again, simply answer all questions asked by tool and create your first model.

Run the application: From your project's root folder, run:

node .

Open your browser to (on some systems, you may need to use http://localhost:3000 instead). You’ll see the default application response that displays some JSON with some status information.

Got any loopbackjs Question?