Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Build and customize your first API with StrongLoop in less than 7 minutes

DZone's Guide to

Build and customize your first API with StrongLoop in less than 7 minutes

StrongLoop can help you crank out your first API in under 7 minutes! Check out how in th

· Integration Zone
Free Resource

Migrating from On-Prem to Cloud Middleware? Here’s what Aberdeen Group says leading companies should be considering. Brought to you in partnershp with Liaison Technologies

The StrongLoop API Platform features the popular open source LoopBack framework. LoopBack enables you to quickly compose scalable APIs, runs on top of the Express web framework and conforms to the Swagger 2.0 specification.

In this video, I showed how to quickly build and customize a REST API powered by LoopBack. Some things to make sure that they are there before applying this video:

  1. The model object (Cafeteria) used in this API is persistent in MongoDB. So make sure to start MongoDB before applying this video steps.
  2. Make sure to create an account in https://strongloop.com/register/ because you will use this account to access the API Composer.
  3. Make sure to have Node.JS installed in your machine: https://nodejs.org/en/
  4. Install StrongLoop by executing the following command:
    $ npm install -g strongloop
  5. Know the purpose of the following commands:
    $ slc loopback
    This command creates a Node.js application using the LoopBack framework.
    $ slc arc
    This command runs StrongLoop Arc (which provides a GUI to define the app model), by default opening it in a web browser window.
  6. The last part of this video shows how to customize the Cafeteria RESTful API by implementing a new attribute status. The cafeteria status can be accessed using "GET /api/Cafeteria/status".

Enjoy watching the video:


Is iPaaS solving the right problems? Not knowing the fundamental difference between iPaaS and iPaaS+ could cost you down the road. Brought to you in partnership with Liaison Technologies.

Topics:
strongloop ,node.js ,integration ,api ,enterprise integration

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}