Ionic 2 Weather App
-
Clone this repository
-
Install Ionic, cordova and node_modules
$ npm install -g ionic $ sudo npm install -g [email protected] $ npm install
-
Get weather API key from DarkSky
- Replace API_KEY in
src/pages/providers/constants.ts
export const FORECAST_CONFIG = { API_ENDPOINT: 'https://api.darksky.net/forecast/' API_KEY: '9bb59ff3063ac4930fc96890570b0c6f' };
- Replace API_KEY in
-
Get google API key from Google Developers Console
- Replace key in
src/index.html
<script src="https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyAZL0jdvdtBV_DmzLZ8yW53GHnhlRrbIAY&libraries=places"> </script>
- Replace key in
$ ionic platform add android
$ ionic build android
$ ionic run android
$ ionic platform add ios
$ ionic build ios
Run using XCode
Run post_install script
$ ./post_install.sh