-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migration steps needed #8
Comments
Luckily I actually have an ES5 / RequireJS example of consuming the AMD backbone-es6 bundle here: backbone-es6-localstorage-todos-requirejs-es5. It's not the Parse enabled version of the canonical TODOs demo. In general you'd need to swap in the backbone-parse-es6 AMD bundle for the one provided in the demo above and add Parse to config.js and link it to the local version though there may be a caveat or two. I'll look into getting up the canonical Parse enabled TODOs demo w/ RequireJS & ES5 later this week. FYI Hopefully there aren't too many differences between the older version of Parse that you've been using as well. You're definitely using the legacy form of working with Parse / Backbone. Basically anywhere you use Backbone functionality you'll have to import and use for instance There are several JSPM / ES6 Parse demos here: typhonjs-demos, but I gather you might not have time to rewrite the app for ES6 though there are many benefits including great documentation via ESDoc. Besides getting things to work first via RequireJS / ES5 on backbone-parse-es6 is a good first step. |
If I use your suggested demo, then I'd have to extend it to support Parse classes and override sync method to persist backbone models on Parse. I am actually currently testing my back-end, and was looking for options to migrate to on the admin console in the meantime. So if you plan to work on it soon, then I can wait :) It'll be a great help!! Yes, we're using the legacy form of working with Parse. We've been v focused on adding more features and not on upgrading the app, which will not be v helpful I'm sure. |
backbone-parse-es6 handles all of the parse sync aspects transparently. It even supports serializing / deserializing nested Backbone models via Parse pointers transparently. See #5 for info on this. I'll hopefully have some time over the weekend to put up a RequireJS / ES5 backbone-parse-es6 demo. backbone-parse-es6 also supports the legacy form of working with Parse. |
Thanks, I'll look into this. And RequireJS demo would be of great help! |
I definitely want to post an update as I've been busy finishing off a major rewrite of escomplex. There is lukewarm news.. It turns out the fix for #5 causes general problems with consuming backbone-parse-es6 directly in RequireJS. I have provided more details in an open issue on the Parse JS SDK repo. There is a simple solution, but requires a very small change to expose the full |
What |
@lkraider it should work with the latest. If you use JSPM directly things are scoped '^1.0.0' and Parse is currently at |
Hi,
This is not really an issue. I need help on how to use your code.
I need to migrate my Parse.com app to Parse server now. I am done with the cloud code part, and now need to migrate a Parse-backbone website which was built using Parse JS SDK version 1.3.5. I am looking into my options at the moment. I am using requireJS. Can you please give me simple guidelines to migrate using backbone-parse-es6.
Here's my structure/ code:
Model:
Collection:
View:
What changes do I need to make if I simply replace parse.js reference with your backbone-parse-inclusive.js? You will save my hours if you assist me in that.
Thanks!
-Mariam
The text was updated successfully, but these errors were encountered: