您的位置:首页 > Web前端 > Node.js

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

2017-03-14 15:19 176 查看
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 .
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: