I am facing a conceptual problem. Let me describe what’s going on:
We have 2 Ember apps. One is a kind of CMS (the CMS app) and the second one is a mobile oriented presentation (the mobile app) of the data entered via the first one. Both are sitting on individual servers, various web adresses.
There was a requirement to preview currently updated data in ‘the CMS’ app to check how would the page look on mobile devices.
The development team decided to show a modal window wrapping an iframe with the URL pointing to the mobile app. This means user needs to perfom a real update (saving changes on backend) so that the changes are propagated throughout the mobile app, too.
Everything works fine till the moment we do not want to update the data on backend. We would like to preview an edited page without having to save it to the backend first.
,I want to preview the page without having to save it.’’, customer said.
Now the fun part begins:
- The CMS app is written in Ember 1.10.0, hasn’t been migrated to 2.0 yet.
- The mobile app is written in Ember 2.3.0.
Target: What to do to avoid copy-paste-ing code? How to stick to the DRY principle?
AFAIK, implementing an addon and keeping apps in sync using the addon is not possible due to the version in which the CMS app is written.
Any idea that could help solve us the problem?