MWDCON-example

One codebase to generate a web app, desktop app and mobile app, using the Ember.js ecosystem and build tools.

Stars
12

Write Once, Run Everywhere

This example illustrates how the Ember.js ecosystem makes it easy to build an app that can run on the web, as a standalone desktop app, or as a mobile app distributable in the app store from a single codebase.

To learn more about how powerful this is, and the ways you can work with this kind of setup to cheaply and easily build a cross-platform app, check out my talk at Mobile+Web Devcon in San Francisco, July 14-16 2015.

Setup

# After cloning this project
npm install; bower install

Web

ember s

Then visit http://localhost 4200 Web App

Desktop App

ember nw

The desktop app will launch automatically once the build process completes Desktop App

Mobile App (iOS)

ember cordova:build

Once this command completes, the XCode project in the ./cordova/platforms/ios folder will have been updated with the latest app code. Open this project in XCode and run it by clicking the "Run" button

And the mobile app will launch in the iOS simulator device of your choice

Further Reading / Useful Links