mgebbe@0: # installation mgebbe@0: mgebbe@1: ### what you need mgebbe@0: mgebbe@1: * facebook api key: https://developers.facebook.com/ mgebbe@1: * googleplus api key and secret: https://console.developers.google.com/ mgebbe@13: * twitter api key and secret: https://dev.twitter.com/ mgebbe@0: * bridge pump.io user (log in and dont map it to social networks) mgebbe@1: for example: bridge@io.intevation.de (https://io.intevation.de/bridge) mgebbe@1: mgebbe@1: ### how to install mgebbe@1: mgebbe@1: ``` mgebbe@1: npm install mgebbe@1: ``` mgebbe@1: mgebbe@0: * copy app.js and index.js to pump.io-client-app usually with: mgebbe@0: mgebbe@0: ``` mgebbe@0: cp app.js_to_pump.io-client-app_lib node_modules/pump.io-client-app/lib/app.js mgebbe@0: cp index.js_to_pump.io-client-app_lib_routes node_modules/pump.io-client-app/lib/routes/index.js mgebbe@0: ``` mgebbe@6: mgebbe@6: * configure your Facebook App ID and your Google App ID in mgebbe@6: ``` mgebbe@6: views/index.jade mgebbe@6: appId: 'FACEBOOKID', mgebbe@6: 'cookiepolicy': "https://yourserver.org", mgebbe@6: 'clientid': 'GOOOGLEPLUSCLIENTID', mgebbe@6: ``` mgebbe@13: mgebbe@13: * copy and configure pumpbridge.json.example to /etc/pumpbridge.json mgebbe@13: mgebbe@13: ``` mgebbe@13: cp pumpbridge.json.example /etc/pumpbridge.json mgebbe@13: ``` mgebbe@13: ``` mgebbe@13: { mgebbe@13: "driver": "redis", mgebbe@13: "params": {"host":"localhost","database":1,"port":6379}, mgebbe@13: "secret": "takeanother", mgebbe@13: "port": 443, mgebbe@13: "bounce": true, mgebbe@13: "interval": 900000, mgebbe@13: "name": "pumpbridge", mgebbe@13: "description": "connect social networks", mgebbe@13: "urlPort": 443, mgebbe@13: "hostname": "server.com", mgebbe@13: "address": "42.42.42.42", mgebbe@13: "nologger": false, mgebbe@13: "serverUser": "pumpio", mgebbe@13: "debugClient": true, mgebbe@13: "bridgeid": "bridge@io.intevation.de", mgebbe@13: "gpAPI_KEY": "XXXXXXXX-GOOGLEAPIKEY", mgebbe@13: "gpCLIENTID": "THEGOOGLECLIENDID", mgebbe@13: "gpCLIENTSECRET": "THEGOOGLECLIENTSECRET", mgebbe@13: "fbAPPID": "FACEBOOKAPPID", mgebbe@13: "fbSECRET": "FACEBOOKSECRET", mgebbe@13: "twclient_id": "TWITTERAPIKEY", mgebbe@13: "twclient_secret": "TWITTERSECRET", mgebbe@13: "key": "/etc/ssl/server.key", mgebbe@13: "cert": "/etc/ssl/server.pem" mgebbe@13: } mgebbe@13: ```