https://github.com/survi218/loopback-server
Backend as a Service (BaaS)
https://github.com/survi218/loopback-server
baas backend-as-a-service loopback loopback-mixin slc-loopback strongloop
Last synced: 2 months ago
JSON representation
Backend as a Service (BaaS)
- Host: GitHub
- URL: https://github.com/survi218/loopback-server
- Owner: survi218
- Created: 2017-06-10T02:08:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-10T02:09:08.000Z (almost 8 years ago)
- Last Synced: 2025-03-05T21:57:37.594Z (2 months ago)
- Topics: baas, backend-as-a-service, loopback, loopback-mixin, slc-loopback, strongloop
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Application
The project is generated by [LoopBack](http://loopback.io).
* First install Loopback. Then you will scaffold out a new server-side application using Loopback. Set up a model and explore the REST API automatically scaffolded out by Loopback.
- Use Loopback to quickly scaffold out a server-side application
- Use Loopback to define a model and automatically let it construct the corresponding REST API
# Installing Loopback
At the command prompt, type the following to install Loopback command-line tools globally:````
npm install strongloop -g
````
Make sure to use sudo if you are installing on OS X or Linux machines.
Scaffolding Out a Loopback Application
At a convenient location on your computer, type the following at the prompt to scaffold out a Loopback application:````
slc loopback
````To create a Loopback model for dishes, type the following at the prompt:
````
slc loopback:model
````* For the model name type dishes. For the data source select db. For the model's base class select PersistedModel.
* Say Yes to REST API, and select the common model.
* Loopback will prompt for the properties of the model. Create the following properties, all of String type: name, description, category, image, label and price. All are required except label. For label, select the default value as ' ', and for price the default value as 0.
* Start the server by typing at the prompt:
````
node .
````- Explore the REST API supported by the server.