Skip to content

ionic setup

mdublin edited this page Jun 21, 2017 · 11 revisions

Unless otherwise indicated, all commands executed from root of Ionic project.

$ git clone https://github.com/votesmart/onpoint.git

$ cd onpoint/www/lib

$ rm -rf votesmartjs

$ git clone https://github.com/votesmart/votesmartjs.git

$ cd ../..

$ git submodule init

ignore warning about angular-soap

$ git submodule update

$ cd onpoint/www/lib/votemsartjs

$ git checkout two

$ npm install

$ npm install -g ionic

$ npm install -g cordova

$ gulp

until this is added to master branch:

$ cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator

$ ionic cordova add platform ios

respond Y to everything

$ ionic cordova platform add ios

$ ionic cordova platform add android

$ ionic cordova build ios

$ ionic cordova build android

See here for emulator configuration

For device ios build

$ cd platforms/ios

$ open -a Xcode onpoint.xcodeproj

In General settings for onpoint project, you'll need to change both the bundle identifier and move up the deployment target to ios 10.3 as it currently defaults to ios 9.

Make sure iPhone is connected then just run the build.

Clone this wiki locally