From f6c82712b9eff781b14d34f2e05af33a71970ab7 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:00:30 +0200 Subject: [PATCH 01/14] Update README.md --- README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/README.md b/README.md index 5deda0a..c4d27c5 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,74 @@ You need at minimum [Node.js](https://nodejs.org/en/) version 6.x. Open up a terminal and enter ``npm run boot`` to start the server. + + +### Setting up API services + +First of all you should create A API Services through google. +first go to [API Console](https://console.developers.google.com) + + +And look into the Seccond colum and select google maps JavaScript + +![](http://appworks.nl/wp-content/uploads/2016/03/google-api-console.jpg) + +than go to Dashboard Tab and prest on google maps JavaScript API Enable. + +![](http://docs.aws.amazon.com/mobile-hub/latest/developerguide/images/google_enable_api.png) + +Than go to credentials Tab and select Create credentials ----> API Key. + +![](http://www.daimto.com/wp-content/uploads/2015/08/CreateAPIKey.png) + + +When the API Key hs been Created. +Copy the Key and press the button close. + +![](https://1.bp.blogspot.com/-adP4dNGRpKk/V3lTxu2f-GI/AAAAAAAAEE8/pkHfCKdsvQg0Wr19V_XQcFEo3r7NzGzDACLcB/s1600/apikey.png) + + +alright after we have setup the API services we need to edit some configs. + +Download or clone the https://github.com/maierfelix/POGOserver/tree/api +when you have the files place them into youré Xamp/Htdocs. + +### Edit the configs + +first open up the POGOserver/cfg.js and scrol down when you see. + + // Google maps api key + GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", replace this API Ket with youré API Key. + +than open up into API/js/init.js and search for + + + loadScriptDefered("http://maps.google.com/maps/api/js?key=" + CFG.GMAPS.API_KEY); + loadScriptDefered("js/gmaps.js"); + loadScriptDefered("js/ajax.js"); + loadScriptDefered("js/main.js"); + +you need to place youré Api KEY Behind /maps/api/js?key=. + +example + loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here Youré Api Key" + CFG.GMAPS.API_KEY); + + +WHen evreything has been edited and been saved. + +go to Youré internet Browser and go to localhost or 127.0.0.1 + +![](https://cdn.discordapp.com/attachments/216235545393627136/224472383208030210/unknown.png) + +Login with root and leave youré password empty click login. + +![](https://images-2.discordapp.net/.eJwFwQEKwyAMAMC_-ABjjdHZ34g6K7SNaAaFsb_v7qs-81S7OkTG2gFKX5ln0Ut4plZ1Y25nTaMvnfmCJJLycdVbFtjNWyRyhBG9DRt6sNZFNBiNC_QyhoKHd39q0eNu6vcHvrYh1w.d5EmSAetGKkh_vj3lnqgHqhVwYQ.png) + + +and if you follow the steps correctly evreything should work like a Charm. + + + ## Docker setup 1. Download ``Dockerfile``, ``cfg.js.example`` and ``supervisord.conf`` from github. From 33ed6496d9006cc6aad0f4d11d863db77d8cbd3e Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:23:18 +0200 Subject: [PATCH 02/14] Update Readme. Fixed Grammer --- README.md | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index c4d27c5..b2684e3 100644 --- a/README.md +++ b/README.md @@ -68,36 +68,38 @@ First of all you should create A API Services through google. first go to [API Console](https://console.developers.google.com) -And look into the Seccond colum and select google maps JavaScript +When you see allot of colums select the colum Google Maps Javascript. ![](http://appworks.nl/wp-content/uploads/2016/03/google-api-console.jpg) -than go to Dashboard Tab and prest on google maps JavaScript API Enable. +go to Dashboard Tab and press on google maps JavaScript API Enable. ![](http://docs.aws.amazon.com/mobile-hub/latest/developerguide/images/google_enable_api.png) -Than go to credentials Tab and select Create credentials ----> API Key. +After That go to credentials Tab and select Create credentials ----> API Key. ![](http://www.daimto.com/wp-content/uploads/2015/08/CreateAPIKey.png) -When the API Key hs been Created. +When the API Key has been Created. Copy the Key and press the button close. ![](https://1.bp.blogspot.com/-adP4dNGRpKk/V3lTxu2f-GI/AAAAAAAAEE8/pkHfCKdsvQg0Wr19V_XQcFEo3r7NzGzDACLcB/s1600/apikey.png) -alright after we have setup the API services we need to edit some configs. +alright after the Services has been setup we need to edit some configs. Download or clone the https://github.com/maierfelix/POGOserver/tree/api -when you have the files place them into youré Xamp/Htdocs. +when you have the files place them into You're Xamp/Htdocs. should be located C:\Program Files\Xamp\Htdocs. ### Edit the configs -first open up the POGOserver/cfg.js and scrol down when you see. +first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down when you see. // Google maps api key - GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", replace this API Ket with youré API Key. + GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", replace this API Ket with You're API Key. + + And press save. than open up into API/js/init.js and search for @@ -107,27 +109,23 @@ than open up into API/js/init.js and search for loadScriptDefered("js/ajax.js"); loadScriptDefered("js/main.js"); -you need to place youré Api KEY Behind /maps/api/js?key=. +you need to place You're Api KEY Behind /maps/api/js?key=. example - loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here Youré Api Key" + CFG.GMAPS.API_KEY); + loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here You're Api Key" + CFG.GMAPS.API_KEY); + + And press save. -WHen evreything has been edited and been saved. - -go to Youré internet Browser and go to localhost or 127.0.0.1 +When evreything has been edited, go to You're internet Browser and go to localhost. ![](https://cdn.discordapp.com/attachments/216235545393627136/224472383208030210/unknown.png) -Login with root and leave youré password empty click login. +Login with root and leave You're password empty and click login. ![](https://images-2.discordapp.net/.eJwFwQEKwyAMAMC_-ABjjdHZ34g6K7SNaAaFsb_v7qs-81S7OkTG2gFKX5ln0Ut4plZ1Y25nTaMvnfmCJJLycdVbFtjNWyRyhBG9DRt6sNZFNBiNC_QyhoKHd39q0eNu6vcHvrYh1w.d5EmSAetGKkh_vj3lnqgHqhVwYQ.png) -and if you follow the steps correctly evreything should work like a Charm. - - - ## Docker setup 1. Download ``Dockerfile``, ``cfg.js.example`` and ``supervisord.conf`` from github. From 672fbc652c09a77f844c1dfb8a76bcb2700d8189 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:23:57 +0200 Subject: [PATCH 03/14] Update README.md --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index b2684e3..8c98aee 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,6 @@ You need at minimum [Node.js](https://nodejs.org/en/) version 6.x. Open up a terminal and enter ``npm run boot`` to start the server. - - ### Setting up API services First of all you should create A API Services through google. @@ -103,7 +101,6 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe than open up into API/js/init.js and search for - loadScriptDefered("http://maps.google.com/maps/api/js?key=" + CFG.GMAPS.API_KEY); loadScriptDefered("js/gmaps.js"); loadScriptDefered("js/ajax.js"); @@ -116,7 +113,6 @@ example And press save. - When evreything has been edited, go to You're internet Browser and go to localhost. ![](https://cdn.discordapp.com/attachments/216235545393627136/224472383208030210/unknown.png) @@ -125,7 +121,6 @@ Login with root and leave You're password empty and click login. ![](https://images-2.discordapp.net/.eJwFwQEKwyAMAMC_-ABjjdHZ34g6K7SNaAaFsb_v7qs-81S7OkTG2gFKX5ln0Ut4plZ1Y25nTaMvnfmCJJLycdVbFtjNWyRyhBG9DRt6sNZFNBiNC_QyhoKHd39q0eNu6vcHvrYh1w.d5EmSAetGKkh_vj3lnqgHqhVwYQ.png) - ## Docker setup 1. Download ``Dockerfile``, ``cfg.js.example`` and ``supervisord.conf`` from github. From f5dc97654e4ddbed37229b32a32d07f42198c9be Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:47:02 +0200 Subject: [PATCH 04/14] Update missing text Latest corrections --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c98aee..edb804e 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ First of all you should create A API Services through google. first go to [API Console](https://console.developers.google.com) -When you see allot of colums select the colum Google Maps Javascript. +When you see allot of colums select the colum Google Maps Javascript Api. ![](http://appworks.nl/wp-content/uploads/2016/03/google-api-console.jpg) From 31ff676087adf4b1548d33448de169189fff5af7 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:49:16 +0200 Subject: [PATCH 05/14] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index edb804e..587389f 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Open up a terminal and enter ``npm run boot`` to start the server. ### Setting up API services -First of all you should create A API Services through google. +1. First of all you should create A API Services through google. first go to [API Console](https://console.developers.google.com) @@ -70,22 +70,22 @@ When you see allot of colums select the colum Google Maps Javascript Api. ![](http://appworks.nl/wp-content/uploads/2016/03/google-api-console.jpg) -go to Dashboard Tab and press on google maps JavaScript API Enable. +2. go to Dashboard Tab and press on google maps JavaScript API Enable. ![](http://docs.aws.amazon.com/mobile-hub/latest/developerguide/images/google_enable_api.png) -After That go to credentials Tab and select Create credentials ----> API Key. +3. After That go to credentials Tab and select Create credentials ----> API Key. ![](http://www.daimto.com/wp-content/uploads/2015/08/CreateAPIKey.png) -When the API Key has been Created. -Copy the Key and press the button close. +4. When the API Key has been Created. + Copy the Key and press the button close. ![](https://1.bp.blogspot.com/-adP4dNGRpKk/V3lTxu2f-GI/AAAAAAAAEE8/pkHfCKdsvQg0Wr19V_XQcFEo3r7NzGzDACLcB/s1600/apikey.png) -alright after the Services has been setup we need to edit some configs. +5. alright after the Services has been setup we need to edit some configs. Download or clone the https://github.com/maierfelix/POGOserver/tree/api when you have the files place them into You're Xamp/Htdocs. should be located C:\Program Files\Xamp\Htdocs. From bc3cced973070d2d2422583d9b24be13b1b35f07 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:52:12 +0200 Subject: [PATCH 06/14] Update Readme. corrections --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 587389f..e2299d0 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Open up a terminal and enter ``npm run boot`` to start the server. ### Setting up API services -1. First of all you should create A API Services through google. +First of all you should create A API Services through google. first go to [API Console](https://console.developers.google.com) @@ -70,22 +70,22 @@ When you see allot of colums select the colum Google Maps Javascript Api. ![](http://appworks.nl/wp-content/uploads/2016/03/google-api-console.jpg) -2. go to Dashboard Tab and press on google maps JavaScript API Enable. + go to Dashboard Tab and press on google maps JavaScript API Enable. ![](http://docs.aws.amazon.com/mobile-hub/latest/developerguide/images/google_enable_api.png) -3. After That go to credentials Tab and select Create credentials ----> API Key. + After That go to credentials Tab and select Create credentials ----> API Key. ![](http://www.daimto.com/wp-content/uploads/2015/08/CreateAPIKey.png) -4. When the API Key has been Created. - Copy the Key and press the button close. + When the API Key has been Created. + Copy the Key and press the button close. ![](https://1.bp.blogspot.com/-adP4dNGRpKk/V3lTxu2f-GI/AAAAAAAAEE8/pkHfCKdsvQg0Wr19V_XQcFEo3r7NzGzDACLcB/s1600/apikey.png) -5. alright after the Services has been setup we need to edit some configs. + alright after the Services has been setup we need to edit some configs. Download or clone the https://github.com/maierfelix/POGOserver/tree/api when you have the files place them into You're Xamp/Htdocs. should be located C:\Program Files\Xamp\Htdocs. From 1c9b71265566356e635565f8d5a65e3189fa6e3a Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 10:56:45 +0200 Subject: [PATCH 07/14] Update Readme. latest corection Grammer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2299d0..0568456 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ example And press save. -When evreything has been edited, go to You're internet Browser and go to localhost. +When everything has been edited, go to You're internet Browser and go to localhost. ![](https://cdn.discordapp.com/attachments/216235545393627136/224472383208030210/unknown.png) From bf002e164e1e5c4be1b425d918f9991fb47427b2 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Tue, 13 Sep 2016 14:19:10 +0200 Subject: [PATCH 08/14] Update Readme. removed /run-linux.sh cause it doesnt exsist anymore --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0568456..1d4febd 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Login with root and leave You're password empty and click login. 2. Place ``Dockerfile``, ``cfg.js.example`` and ``supervisord.conf`` into the same folder. Rename ``cfg.js.example`` to ``cfg.js``. 3. Modify ``cfg.js`` to your requirements as described above. 4. Create a container and run it. -5. Open a bash prompt, enter: ``cd /POGOserver/`` and ``./run-linux.sh``. +5. Open a bash prompt, enter: ``cd /POGOserver/``. 6. Connect the Pokemon Go app to the server. 7. Done. From 8298611342dc5aaa00a00904d9e01c3b0e845ef9 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Wed, 14 Sep 2016 08:33:29 +0200 Subject: [PATCH 09/14] Update Readme. Change the api Config Setup --- README.md | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1d4febd..c89d7b4 100644 --- a/README.md +++ b/README.md @@ -99,18 +99,22 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe And press save. -than open up into API/js/init.js and search for +than open up into API/cfg.js and search for + +var CFG = { + API: { + HOST: "127.0.0.1", + PORT: 3000, + ROUTE: "/api" + }, + GMAPS: { + API_KEY: "XXXXX", Enter API Key Here + BASE_ZOOM: 20, + BASE_LAT: 39.18875480450959, + BASE_LNG: -96.58109955489635 + } +}; - loadScriptDefered("http://maps.google.com/maps/api/js?key=" + CFG.GMAPS.API_KEY); - loadScriptDefered("js/gmaps.js"); - loadScriptDefered("js/ajax.js"); - loadScriptDefered("js/main.js"); - -you need to place You're Api KEY Behind /maps/api/js?key=. - -example - loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here You're Api Key" + CFG.GMAPS.API_KEY); - And press save. When everything has been edited, go to You're internet Browser and go to localhost. @@ -127,7 +131,7 @@ Login with root and leave You're password empty and click login. 2. Place ``Dockerfile``, ``cfg.js.example`` and ``supervisord.conf`` into the same folder. Rename ``cfg.js.example`` to ``cfg.js``. 3. Modify ``cfg.js`` to your requirements as described above. 4. Create a container and run it. -5. Open a bash prompt, enter: ``cd /POGOserver/``. +5. Open a bash prompt, enter: ``cd /POGOserver/. and ./run-linux.sh. 6. Connect the Pokemon Go app to the server. 7. Done. From 873f12cfd07faa23b79e549dfba371c8bebc4d87 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Wed, 14 Sep 2016 08:34:26 +0200 Subject: [PATCH 10/14] Update Readme. Restored the docker Setup --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c89d7b4..7fbf95b 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Login with root and leave You're password empty and click login. 2. Place ``Dockerfile``, ``cfg.js.example`` and ``supervisord.conf`` into the same folder. Rename ``cfg.js.example`` to ``cfg.js``. 3. Modify ``cfg.js`` to your requirements as described above. 4. Create a container and run it. -5. Open a bash prompt, enter: ``cd /POGOserver/. and ./run-linux.sh. +5. Open a bash prompt, enter: ``cd /POGOserver/ and ./run-linux.sh. 6. Connect the Pokemon Go app to the server. 7. Done. From be1284fb686ceafce3b79ccb1de721f0674d4744 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Wed, 14 Sep 2016 08:38:03 +0200 Subject: [PATCH 11/14] Update README.md --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7fbf95b..daf11e2 100644 --- a/README.md +++ b/README.md @@ -101,19 +101,16 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe than open up into API/cfg.js and search for -var CFG = { - API: { + API: HOST: "127.0.0.1", PORT: 3000, ROUTE: "/api" - }, + GMAPS: { API_KEY: "XXXXX", Enter API Key Here BASE_ZOOM: 20, BASE_LAT: 39.18875480450959, BASE_LNG: -96.58109955489635 - } -}; And press save. From 6aad9cd64564a8c4be7ab4f1a71993e83c77e6e2 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Wed, 14 Sep 2016 08:38:49 +0200 Subject: [PATCH 12/14] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index daf11e2..56f7cd0 100644 --- a/README.md +++ b/README.md @@ -103,13 +103,18 @@ than open up into API/cfg.js and search for API: HOST: "127.0.0.1", + PORT: 3000, + ROUTE: "/api" GMAPS: { API_KEY: "XXXXX", Enter API Key Here + BASE_ZOOM: 20, + BASE_LAT: 39.18875480450959, + BASE_LNG: -96.58109955489635 And press save. From f0a6eb08fb5a17d53249e4acd39dea7f61f9cb40 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Wed, 14 Sep 2016 12:38:40 +0200 Subject: [PATCH 13/14] Update Readme. fixed tabs for Api configs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 56f7cd0..1502000 100644 --- a/README.md +++ b/README.md @@ -101,14 +101,18 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe than open up into API/cfg.js and search for + API: + HOST: "127.0.0.1", PORT: 3000, ROUTE: "/api" + GMAPS: { + API_KEY: "XXXXX", Enter API Key Here BASE_ZOOM: 20, From cdf33d84217a26a1125287471f72b8f3ccf00017 Mon Sep 17 00:00:00 2001 From: cliff smits Date: Thu, 15 Sep 2016 08:47:55 +0200 Subject: [PATCH 14/14] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1502000..56c3736 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe than open up into API/cfg.js and search for + API: HOST: "127.0.0.1", @@ -111,6 +112,7 @@ than open up into API/cfg.js and search for ROUTE: "/api" + GMAPS: { API_KEY: "XXXXX", Enter API Key Here