/ionic

RioBus' mobile app written with Ionic2

Primary LanguageTypeScriptMIT LicenseMIT

Rio Bus hybrid android app

This is the RioBus' geolocation app built with Ionic2 + TypeScript + Karma + Protractor.

Table of Contents

Install Node.js

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash # Mac or linux, follow the instructions
nvm install stable

Getting Started

  • Clone this repository.
  • Install the ionic CLI and Cordova CLI (npm install -g ionic cordova)
  • Run npm install from the project root.
  • Run npm start in a terminal from the project root.
  • Profit.

Note: Is your build slow? Update npm to 3.x: npm install -g npm.

Run in browser

npm start         # deploys the the browser

Run in Android

# make sure the Android device is connected and available to ADB

npm run android   # deploys the app to an Android device

Run in iOS

# make sure the iOS device is connected

npm run ios       # deploys the app to an iOS device

Run Unit Tests

npm test          # run unit tests

Run E2E

# e2e (aka. end-to-end, integration) - In two different shell windows
# Make sure you don't have a global instance of Protractor

npm start
npm run e2e

Contribute

Issues and PRs are welcome, see the issues list.

Acknowledges