From d1a86b66d145fd96e0569e1cdd082c675df5a962 Mon Sep 17 00:00:00 2001 From: Mika Koskiola Date: Fri, 29 Apr 2016 21:45:57 +0300 Subject: [PATCH 1/4] Fixed the readme --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2938509..2c7f762 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,14 @@ Or use the files from ionic market: It is a clean project without external dependencies! -After that!!!: +## Configuring the project -- go in www folder then app and directives -- there open the googleMaps.js and change the Google Maps apiKey with yours +- go to the \www\app\templates\ folder and open up the results.html with your favorite editor +- Edit the line
to include your Google API key -Finding something in the democontent: +## Trying out the app + +Finding something in the demo content: Type in 'Berlin', 'Ber', 'Sports' or 'Düsseldorf' ## Content From cf87dc93d4dc8ed32df2f89a1de6f3731d805b16 Mon Sep 17 00:00:00 2001 From: Mika Koskiola Date: Fri, 29 Apr 2016 21:50:22 +0300 Subject: [PATCH 2/4] Further fine tuning to the readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c7f762..b5ca2ca 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,12 @@ It is a clean project without external dependencies! ## Configuring the project -- go to the \www\app\templates\ folder and open up the results.html with your favorite editor -- Edit the line
to include your Google API key +1) go to the \www\app\templates\ folder and open up the results.html with your favorite editor +2) Edit the following line to include your Google API key: + +``` +
+``` ## Trying out the app From 717c8725d17d0bc565d1db989c970dc8de673693 Mon Sep 17 00:00:00 2001 From: Mika Koskiola Date: Fri, 29 Apr 2016 21:53:32 +0300 Subject: [PATCH 3/4] More readme improvements... --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5ca2ca..6adb592 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ It is a clean project without external dependencies! ## Configuring the project -1) go to the \www\app\templates\ folder and open up the results.html with your favorite editor -2) Edit the following line to include your Google API key: +1. go to the \www\app\templates\ folder and open up the results.html with your favorite editor +2. Edit the following line to include your Google API key: ```
@@ -24,6 +24,11 @@ It is a clean project without external dependencies! ## Trying out the app +1. Issue ionic serve in your shell to try out the app in your regular local browser +2. Issue ionic run android / ios in your shell to try out the app in a real device + +## Example data + Finding something in the demo content: Type in 'Berlin', 'Ber', 'Sports' or 'Düsseldorf' From d7276ffa5f2fceef8995bccc6c0c676f408692a3 Mon Sep 17 00:00:00 2001 From: Mika Koskiola Date: Fri, 29 Apr 2016 22:16:40 +0300 Subject: [PATCH 4/4] Moved the apiKey defining from the template to the controller Edited the readme to fit the changes too --- README.md | 6 +++--- www/app/controllers/results.js | 1 + www/app/templates/results.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6adb592..e4e66f0 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,11 @@ It is a clean project without external dependencies! ## Configuring the project -1. go to the \www\app\templates\ folder and open up the results.html with your favorite editor +1. go to the \www\app\controllers\ folder and open up the results.js with your favorite editor 2. Edit the following line to include your Google API key: -``` -
+```javascript +$scope.apiKey = 'YOUR_API_KEY_HERE'; ``` ## Trying out the app diff --git a/www/app/controllers/results.js b/www/app/controllers/results.js index a65c569..d14e6ad 100644 --- a/www/app/controllers/results.js +++ b/www/app/controllers/results.js @@ -14,6 +14,7 @@ define([ 'eventService', function ($scope, $stateParams, $state, $timeout, $ionicHistory, eventService) { var first = true; + $scope.apiKey = 'YOUR_API_KEY_HERE'; $scope.limit = 10; $scope.show = { list: true diff --git a/www/app/templates/results.html b/www/app/templates/results.html index ae26e99..31d3d43 100644 --- a/www/app/templates/results.html +++ b/www/app/templates/results.html @@ -4,7 +4,7 @@ -
+