[Node.js] Initialize a LoopBack Node.js Project through the CLI

LoopBack is a framework built on top of Express for creating APIs. It allows you to create end-to-end REST APIs that can access data from many data sources such as MondoDB, PostgreSQL, MySQL or other REST APIs.

In this lesson you will learn how to install loopback-cli and create a new LoopBack API project. After creating the basic LoopBack project through the CLI, running the server will give us access to the project and API Explorer urls. The user model will be available to us because user authentication was enabled.

 

Install:

npm install -g  loopback-cli

 

Make a project floder:

mkdir loopback-demo
cd loopback-demo

 

Create app:

lb app

 

Run the app

node .

 

posted @ 2017-03-14 15:19  Zhentiw  阅读(144)  评论(0编辑  收藏  举报