Mercurial > pumpbridge
annotate INSTALL.md @ 13:58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Thu, 12 Jun 2014 10:34:02 +0200 |
parents | a94ac7c3b182 |
children | faeb3b96bdeb |
rev | line source |
---|---|
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
1 # installation |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
2 |
1 | 3 ### what you need |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
4 |
1 | 5 * facebook api key: https://developers.facebook.com/ |
6 * googleplus api key and secret: https://console.developers.google.com/ | |
13
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
7 * twitter api key and secret: https://dev.twitter.com/ |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
8 * bridge pump.io user (log in and dont map it to social networks) |
1 | 9 for example: bridge@io.intevation.de (https://io.intevation.de/bridge) |
10 | |
11 ### how to install | |
12 | |
13 ``` | |
14 npm install | |
15 ``` | |
16 | |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
17 * copy app.js and index.js to pump.io-client-app usually with: |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
18 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
19 ``` |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
20 cp app.js_to_pump.io-client-app_lib node_modules/pump.io-client-app/lib/app.js |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
21 cp index.js_to_pump.io-client-app_lib_routes node_modules/pump.io-client-app/lib/routes/index.js |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
22 ``` |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
23 |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
24 * configure your Facebook App ID and your Google App ID in |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
25 ``` |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
26 views/index.jade |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
27 appId: 'FACEBOOKID', |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
28 'cookiepolicy': "https://yourserver.org", |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
29 'clientid': 'GOOOGLEPLUSCLIENTID', |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
30 ``` |
13
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
31 |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
32 * copy and configure pumpbridge.json.example to /etc/pumpbridge.json |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
33 |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
34 ``` |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
35 cp pumpbridge.json.example /etc/pumpbridge.json |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
36 ``` |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
37 ``` |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
38 { |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
39 "driver": "redis", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
40 "params": {"host":"localhost","database":1,"port":6379}, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
41 "secret": "takeanother", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
42 "port": 443, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
43 "bounce": true, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
44 "interval": 900000, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
45 "name": "pumpbridge", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
46 "description": "connect social networks", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
47 "urlPort": 443, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
48 "hostname": "server.com", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
49 "address": "42.42.42.42", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
50 "nologger": false, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
51 "serverUser": "pumpio", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
52 "debugClient": true, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
53 "bridgeid": "bridge@io.intevation.de", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
54 "gpAPI_KEY": "XXXXXXXX-GOOGLEAPIKEY", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
55 "gpCLIENTID": "THEGOOGLECLIENDID", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
56 "gpCLIENTSECRET": "THEGOOGLECLIENTSECRET", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
57 "fbAPPID": "FACEBOOKAPPID", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
58 "fbSECRET": "FACEBOOKSECRET", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
59 "twclient_id": "TWITTERAPIKEY", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
60 "twclient_secret": "TWITTERSECRET", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
61 "key": "/etc/ssl/server.key", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
62 "cert": "/etc/ssl/server.pem" |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
63 } |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
64 ``` |