-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration with ember-cli #8
Comments
Would really like to get this working as well. Thanks for all the work. Really excited about Orbit! |
@brancusi @tute In my bower.json file I'm using local builds of orbit.js and ember-orbit using the path to the dist directory on my system like so:
Then in my Brocfile.js I'm importing the files like so:
Note that the above format is influx with ember-cli v.0.0.37 see http://git.io/H1GsPw I'm still migrating to ember-cli so can't yet confirm that this setup is 100% the way to do but this is what I'm trying out for now. |
Here is a diff for the setup I have so far: https://github.com/pixelhandler/blog/compare/try-ember-orbit-with-ember-cli I'm trying to use JSONAPI for the source; however, I'm getting a JavaScript error, Source.orbitSourceClass must be initialized with an instance of an I'm using ember-orbit at commit: 8e4cd3c with ember-cli v0.0.37
This is the initializer:
|
@pixelhandler I'm surprised that's still an issue. I'll pull down your blog this weekend (I'm on a family vacation now) and try to get you past this problem. @tute I'd like to get ember-orbit working as an ember cli addon, as described in Robert Jackson's post. I'll also start this work in a few days. |
I just did an attempt at an Ember CLI addon. See my PR above. |
@dgeb Hope you have a great vacation! Don't worry about using my blog app to trouble shoot, Perhaps a simple demo app that uses OC.JSONAPISource and MemoryStore would be cool, like https://github.com/opsb/ember-orbit-todos but with REST + Memory connected (when/if you have time). |
Closing this issue in favor of the PR: #9. |
@pixelhandler thanks - we had a great time! Back and refreshed to tackle these issues now.
Such an example app is in the works. I also have a new Ruby lib that I'll be using to build the JSON API-compliant server.
@tute thanks - I'll follow up over there. |
@dgeb this sounds like exactly what I was intending to build (been stuck on other things unfortunately). Any idea when it'll be up on github? I'm hoping to get back on to the orbit related project next week and would be very happy to help out. |
@opsb I'll try to have this project available within a week. Looking forward to the help - thanks in advance! |
Did a JSONAPISource + MemoryStore example of the todos app ever get created? I'm lost on how to get this to work with a remote REST API server. |
For integrating into an ember-cli project that used data, I'm doing:
Remove
ember-data
altogether (I suspect it was the source of theThe initializer 'injectStore' has already been registered
error). In my case it was tied to the models,DS.RESTAdapter
, package and bower.json, and a customapp/transforms/array.js
.Add to
bower.json
(got this snippet from https://github.com/opsb/ember-orbit-todos/blob/master/bower.json):This is related with Build npm package #7, about having an npm package for ember-orbit (that could require orbit.js itself).
Add
app/initializers/orbit-store.js
, similar to https://github.com/orbitjs/ember-orbit#initialization. Now stuck in there, with errors likeReferenceError: Orbit is not defined
.Are there blog posts or guidelines on how to integrate it into an existing project? If not, we may start off of this issue!
Thanks for your work.
The text was updated successfully, but these errors were encountered: