O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating REST APIs

Once satisfied with the workings of the models, we may then swap out the fixtures adapter with the rest-adapter, that as you guessed, communicates with remote data stores through REST. The second sample includes a simple Node.js server (Server.js) that uses Express.js (http://expressjs.com) to demonstrate the use of this adapter. To test the application, you will need to install Node.js by following these steps:

  1. Download your platform's Node.js binary at http://nodejs.org/download/.
  2. Un-archive the downloaded package.
  3. Add the location of the bin directory inside the un-archived directory into your environment PATH setting.
  4. Test out the installation by running node in a terminal.

To start the application, navigate to the rest-adapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required