Skip to content

Instantly share code, notes, and snippets.

@patricksrobertson
Last active August 29, 2015 14:13
Show Gist options
  • Save patricksrobertson/31733d35c00b56b070be to your computer and use it in GitHub Desktop.
Save patricksrobertson/31733d35c00b56b070be to your computer and use it in GitHub Desktop.
ember cli ecosystem

ICIS Ember-CLI Ecosystem

This doc outlines what we have going for us with Ember-CLI apps/addons.

The idea behind the addon ecosystem is this that it's currently too fucking expensive to build single page apps vs how expensive it should be.

We have automatically generating Ruby API clients, we have engines for authenticaiton on the server side, but up till now we don't have anything for the client.

Now we can immediately be authenticated via our identity service, have access to all the RESTful resources we expose via API, and start with common application building blocks.

Addons

Ember-ICIS-Auth

https//github.com/iorahealth/ember-icis-auth

The auth addon hooks up OAuth.js to our default route('index') and then authenticates to our identity server. Once that's done, it sets the access token so that our model layer can use it to talk to our services.

It also has a route('token') that allows us to pass in a valid access token via query param to circumvent the OAuth.js mechanism. It'll then return to the index route.

Ember-ICIS-Model

https//github.com/iorahealth/ember-icis-model

The model addon contains the adapters/models/serializers for accessing our services via CORS. The addon assumes you've got a token in localstorage (presumably set via ember-icis-auth) and currently requires us to reopen the adapters to set the services host.

Ember-ICIS-Widget

https//github.com/iorahealth/ember-icis-widget

The widget addon contains some frequently used UI components that can be used reasonably well from app to app. This should help us get some shared design motifs going between applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment