Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.56 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.56 KB

Basic Cordova Example

Version of Todomvc application running on Cordova. Before running this example you need to have Cordova installed with a phone or emulator available.

Installing the application

  • Run Todomvc application on LiveOak and setup it as described in Todomvc Example README.md

  • Edit 'www/index.html' and change the URL for 'liveoak.js' . You need to change host and replace it with real INET_ADDRESS of your host where LiveOak with TodoMVC deployed is running. Currently it is set to 192.168.2.7 which corresponds to a localhost running an Android emulator.

  • Set up Cordova native Android project:

$ mkdir platforms plugins
$ cordova plugin add org.apache.cordova.inappbrowser
$ cordova platform add android

Setup the application

Running the application

  • Build native application from web app, and run it:
$ cordova run android

Once the application is opened you can login with username: 'bob', and password: 'password' or use other account as specified in README of Todomvc example.