zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

JSNode The project CLI Through initialize
2023-09-14 08:59:18 时间

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 .