view INSTALL.md @ 24:08d9679da0f7

s/wrotes/writes/
author Mathias Gebbe <mgebbe@intevation.de>
date Thu, 19 Jun 2014 13:01:11 +0200
parents 58a069d12b0c
children faeb3b96bdeb
line wrap: on
line source
# installation

### what you need

* facebook api key: https://developers.facebook.com/
* googleplus api key and secret: https://console.developers.google.com/
* twitter api key and secret: https://dev.twitter.com/
* bridge pump.io user (log in and dont map it to social networks)
  for example: bridge@io.intevation.de (https://io.intevation.de/bridge)

### how to install

```
npm install
```

* copy app.js and index.js to pump.io-client-app usually with:

```
cp app.js_to_pump.io-client-app_lib node_modules/pump.io-client-app/lib/app.js
cp index.js_to_pump.io-client-app_lib_routes node_modules/pump.io-client-app/lib/routes/index.js
```

* configure your Facebook App ID and your Google App ID in
```
views/index.jade
 appId: 'FACEBOOKID',
 'cookiepolicy': "https://yourserver.org",
 'clientid': 'GOOOGLEPLUSCLIENTID',
```

* copy and configure pumpbridge.json.example to /etc/pumpbridge.json

```
cp pumpbridge.json.example /etc/pumpbridge.json
```
```
{
"driver": "redis",
"params": {"host":"localhost","database":1,"port":6379},
"secret": "takeanother",
"port": 443,
"bounce": true,
"interval": 900000,
"name": "pumpbridge",
"description": "connect social networks",
"urlPort": 443,
"hostname": "server.com",
"address": "42.42.42.42",
"nologger": false,
"serverUser": "pumpio",
"debugClient": true,
"bridgeid": "bridge@io.intevation.de",
"gpAPI_KEY": "XXXXXXXX-GOOGLEAPIKEY",
"gpCLIENTID": "THEGOOGLECLIENDID",
"gpCLIENTSECRET": "THEGOOGLECLIENTSECRET",
"fbAPPID": "FACEBOOKAPPID",
"fbSECRET": "FACEBOOKSECRET",
"twclient_id": "TWITTERAPIKEY",
"twclient_secret": "TWITTERSECRET",
"key": "/etc/ssl/server.key",
"cert": "/etc/ssl/server.pem"
}
```
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)