Getting started with loopbackjs

Download loopbackjs eBook

Remarks

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

Installation:

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:

lb
 

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 http://0.0.0.0:3000/ (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.

Stats

54 Contributors: 4
Saturday, March 4, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook