[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:
Make a project floder:
Create app:
Run the app
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 .
相关文章推荐
- Spotlight – Recommend Node.js Projects For January
- The beauty of node.js
- node.js连接mongodb数据库警告:(Please ensure that you set the default write concern)
- [label][IDE] Develop Node.js Project With WebStorm
- Learn You The Node.js For Much Win!
- 事件触发 + 非阻塞I/O - The idea of node.js
- Java 开发者如何入门 Node.js 英文原文:Getting Started with Node.js for the Java Developer
- The Absolute Beginner’s Guide to Node.js( Node.js 新手指南 (Manuel Weiss))
- The Twilio API and TwiML for node.js
- 安装Node.js,系统提示User installations are disabled via policy on the machine
- HowToNodejs - fly-js-wbean - 在线游戏平台网络传输框架 - Google Project Hosting
- why I was failed in nodejs project
- How to handle the issue of node.js msi to roll back under windows 8
- The Absolute Beginner’s Guide to Node.js( Node.js 新手指南 (Manuel Weiss))
- Edge.js:让.NET和Node.js代码比翼齐飞(http://www.infoq.com/cn/articles/the_edge_of_net_and_node)
- Understanding the node.js event loop
- [Not Mine] My weekend project: an Arduino, Raspberry Pi & Node.js robot
- Node.js and the JavaScript Age
- [Node.js]27. Level 5: URL Building & Doing the Request
- The Titanium Command Line (CLI) project