/codename-tank

:bomb: The cannon mobile app

Primary LanguageJavaScriptMIT LicenseMIT

codename-tank

![Gitter](https://badges.gitter.im/Join Chat.svg)

The cannon mobile app is a hybrid app based on Cordova developed by SINFO.

For the front-end we are using AngularJS + Ionic Framework.

Node Dependecies:

  1. Cordova $ npm install -g cordova
  2. Ionic-Cli $ npm install -g ionic
  3. Grunt-Cli $ npm install -g grunt-cli
  4. Bower $ npm install -g bower

Ruby Dependecies:

  1. Sass $ gem install sass

Android Dependecies:

  1. Java SDK
  2. Ant
  3. Android SDK

iOS Dependecies:

  1. Xcode

Installation:

  1. Clone the repo: $ git clone git@github.com:sinfo/codename-tank.git
  2. Enter the directory: $ cd codename-tank
  3. Install npm dependencies: $ npm install
  4. Install bower dependencies: $ bower install
  5. Add one or more supported mobile platforms $ grunt platform:add:android this 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.

Launching app:

  1. Launch app into your device $ grunt run:android or emulator $ grunt emulate:ios
  2. When developing, it's possible to run the app on your device or emulator and watch for local changes $ grunt run:android --livereload