Compass application for IOS written in Ionic (AngularJS, CSS, HTML). Supports latitude/longitude in dms/deg format and magnetic north.
$ npm install -g cordova ionic
Clone, cd
to /compass
folder and run
$ ionic platform add ios
$ cordova plugin add cordova-plugin-geolocation
$ cordova plugin add cordova-plugin-device-orientation
You can use the Ionic View app and view the app via $ ionic upload
.
Build
$ ionic build ios
Emulator run
$ ionic emulate ios
Device run
$ ionic run ios --device
Or open the resulting XCode project from platforms/ios
Environment setup to do some testing
$ npm install karma --save-dev
$ npm install karma-phantomjs-launcher --save-dev
$ npm install phantomjs-prebuilt --save-dev
$ npm install jasmine-core --save-dev
$ npm install karma-jasmine --save-dev
$ bower install angular-mocks --save-dev
$ karma init karma.config.js
Run tests
karma start karma.config.js
Add Sass support
$ ionic setup sass
Serve
$ ionic serve
More info on this can be found on the Ionic Getting Started page and the Ionic CLI repo.