Skip to content

JustinTRoss/crema

 
 

Repository files navigation

Crema - Mobile

Find the nearest coffee shops that you can work from.

alt text

How To Run Application

Install Ionic 2 and Cordova

If you do not have Ionic 2 or Cordova installed:

# Ionic & Cordova CLI
npm install -g ionic@beta
npm install -g cordova

# iOS simulator starter & deployer
npm install -g ios-sim
npm install -g ios-deploy

iOS Emulator

  1. Fork the repo git clone https://github.com/Political-Tambourine/crema.git && cd crema
  2. Install package dependencies: npm install
  3. Add iOS as platform: ionic platform add ios@4.1.1
    Latest version may be unstable - use version 4.1.1
  4. Install Geolocation Cordova plugin: ionic plugin add cordova-plugin-geolocation
  5. Install Native GoogleMap Cordova plugin: ionic plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="YOUR_API_KEY"
    NOTE: As of 7/20/16 - cordova-plugin-googlemaps npm registry points to an old version of the plugin that is incompatible with Cordova iOS 4+. So we are installing from Git repo's HEAD (https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps)
  6. Prepare plugins for build: cordova prepare
  7. Build and run emulator: ionic emulate ios
    • You can specify target device by adding target flag ionic emulate ios --target
    • During development, you should run the emulator with live-reload and consolelogs flags ionic emulate ios -lc

Note:

  • If build fails - try running cordova plateform update ios and re-run the emulator again
  • If app runs on the emulator but throwing "GoogleMaps plugin not found" error, try removing googlemaps plugin, the ios platform, and reinstalling them
    cordova plugin rm plugin.google.maps
    cordova plugin rm cordova-plugin-googlemaps
    cordova plugin rm com.googlemaps.ios
    cordova plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="YOUR_API_KEY"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 49.3%
  • HTML 20.6%
  • CSS 17.2%
  • JavaScript 12.9%