
The cannon mobile app is a hybrid app based on Cordova developed by SINFO.
For the front-end we are using AngularJS + Ionic Framework.
- Cordova
$ npm install -g cordova - Ionic-Cli
$ npm install -g ionic - Grunt-Cli
$ npm install -g grunt-cli - Bower
$ npm install -g bower
- Sass
$ gem install sass
- Xcode
- Clone the repo:
$ git clone git@github.com:sinfo/codename-tank.git - Enter the directory:
$ cd codename-tank - Install
npmdependencies:$ npm install - Install
bowerdependencies:$ bower install - Add one or more supported mobile platforms
$ grunt platform:add:androidthis will also install cordova plugins dependencies for each platform
###Note
Before running the app you must copy the database file assets/tank
On Android you must copy it to platforms/android/assets
On iOS you must copy it to the Resources directory and then Add it in to your Xcode Project. Right Click on the Resources directory, then click Add files.
- Launch app into your device
$ grunt run:androidor emulator$ grunt emulate:ios - When developing, it's possible to run the app on your device or emulator and watch for local changes
$ grunt run:android --livereload