4 ms·
Ah, by the way, you shouldn't need to serve the front-end app from the same server as the API. By default, Fortune gives you CORS (Cross Origin Resource Sharing
by daliwali 13y ago
Ah, by the way, you shouldn't need to serve the front-end app from the same server as the API. By default, Fortune gives you CORS (Cross Origin Resource Sharing), so that clients from any domain can consume it.
Also, Fortune should work out the box with Ember Data and my JSON API adapter: https://github.com/daliwali/ember-json-api https://github.com/daliwali/ember-json-api . Not to say that you should ditch Angular, but it will probably need quite a bit of modifications to its data layer to get it working with the JSON API spec.
I will be working on a full, non-trivial example of what an Ember.js + Fortune.js application can be in the coming week(s). There is a current implementation that's in production at my company, but its unfortunately closed-source.