Code Monkey home page Code Monkey logo

loopback-server's Introduction

My Application

The project is generated by LoopBack.

  • 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.

loopback-server's People

Contributors

surendravidiyala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.