Skip to content
75 changes: 74 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,86 @@ 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)


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.

![](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.

![](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.

![](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.

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.

### Edit the configs

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 You're API Key.

And press save.

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.

When everything 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 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.
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.

Expand Down