This is an ionic 2 project that it's primary functionality is to show today's weather and a five day weather forecast.
The app uses Open Weather Map API to get the weather data and Google's Places Autocomplete web service to get city predictions on user input.
- 5 day forecast
- Works for any city
- Favorite cities
You can preview the app with Ionic View using APP ID
54106411
To build the app you need
- ionic 2 and cordova
$ npm install -g ionic cordova
- Cordova Geolocation plugin
$ ionic plugin add cordova-plugin-geolocation
You also need API keys from
- Open Weather Map and add it to:
myBlank\src\providers\weather-service.ts
- Google Places API Web Service and add it to:
myBlank\src\providers\autocomplete-service.ts
- Clone the repository
$ git clone https://github.com/pzoupis/ionic2-test.git
- Change directory
$ cd myBlank
- Install modules
$ npm install
- Run in browser
$ ionic lab
To run the app on a device you don't need the CORS request. So you have to edit the files below and add the full url: src/providers/autocomplete-service.ts
- /weather-service
+ http://api.openweathermap.org
src/providers/weather-service.ts
- /autocomplete-service
+ https://maps.googleapis.com