Mercurial > pumpbridge
annotate INSTALL.md @ 29:34cfa565f565
replace fromESN twitter links with html <a>
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Tue, 29 Jul 2014 16:06:05 +0200 |
parents | faeb3b96bdeb |
children |
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 |
28 | 22 mkdir -p lib/ && coffee -b -c -o lib/ src/*.coffee |
29
34cfa565f565
replace fromESN twitter links with html <a>
Mathias Gebbe <mgebbe@intevation.de>
parents:
28
diff
changeset
|
23 cp src/restartSYNC.sh lib/restartSYNC.sh |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
24 ``` |
6
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 * 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
|
27 ``` |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
28 views/index.jade |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
29 appId: 'FACEBOOKID', |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
30 'cookiepolicy': "https://yourserver.org", |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
31 'clientid': 'GOOOGLEPLUSCLIENTID', |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
1
diff
changeset
|
32 ``` |
13
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 * 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
|
35 |
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 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
|
38 ``` |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
39 ``` |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
40 { |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
41 "driver": "redis", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
42 "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
|
43 "secret": "takeanother", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
44 "port": 443, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
45 "bounce": true, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
46 "interval": 900000, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
47 "name": "pumpbridge", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
48 "description": "connect social networks", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
49 "urlPort": 443, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
50 "hostname": "server.com", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
51 "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
|
52 "nologger": false, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
53 "serverUser": "pumpio", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
54 "debugClient": true, |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
55 "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
|
56 "gpAPI_KEY": "XXXXXXXX-GOOGLEAPIKEY", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
57 "gpCLIENTID": "THEGOOGLECLIENDID", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
58 "gpCLIENTSECRET": "THEGOOGLECLIENTSECRET", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
59 "fbAPPID": "FACEBOOKAPPID", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
60 "fbSECRET": "FACEBOOKSECRET", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
61 "twclient_id": "TWITTERAPIKEY", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
62 "twclient_secret": "TWITTERSECRET", |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
63 "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
|
64 "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
|
65 } |
58a069d12b0c
edit INSTALL.md and use correct params in pumpbridge.json
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
66 ``` |