Files: c761008b5ab9e6a313b4031c440472ef39d59928 / doc / install-guide.html
1812 bytesRaw
1 | |
2 | <html> |
3 | <head> |
4 | <meta charset=utf-8> |
5 | <title>ssb-npm + git-ssb + patchfoo install</title> |
6 | <style> |
7 | body { |
8 | font: 16pt sans-serif; |
9 | } |
10 | </style> |
11 | </head> |
12 | <body> |
13 | <h2>Installing ssb-npm + git-ssb + patchfoo</h2> |
14 | <p>cel 2019-02-25; updated 2020-07-09</p> |
15 | |
16 | <h3>Set up npm</h3> |
17 | <p>If you haven't already done so, set a prefix for <code>npm</code> and add its bin directory to your <code>$PATH</code>:</p> |
18 | <pre> |
19 | echo prefix=$HOME/.local >> ~/.npmrc |
20 | echo PATH=\$PATH:$HOME/.local/bin >> ~/.profile |
21 | PATH=$PATH:$HOME/.local/bin |
22 | </pre> |
23 | |
24 | <h3>Install ssb-npm</h3> |
25 | <pre> |
26 | mkdir -p /tmp/ssb-npm-registry-2.1.3 && cd /tmp/ssb-npm-registry-2.1.3 && |
27 | curl -s 'http://localhost:8989/blobs/get/&ptkWRUIPdBGTZ3W2BWPBuyFw4RumSjQu/DPJ3kufk1s=.sha256' | tar xz && |
28 | ./package/bootstrap/bin.js --ws-url http://localhost:8989 \ |
29 | --branch %i06tAOja1Nvy2IroPTwqn7t4G7M/YUAXmHU6xDJDiSs=.sha256 \ |
30 | install -g ssb-npm@2.0.4 |
31 | </pre> |
32 | |
33 | <h3>Install git-ssb</h3> |
34 | <pre> |
35 | ssb-npm install -g git-ssb@2.8.0 \ |
36 | --branch %xlfr8klBuPNiHSXQ5uq2HkrIWudCz9Zzs9jiBoJBz3s=.sha256 |
37 | </pre> |
38 | |
39 | <h3>Clone and install patchfoo</h3> |
40 | |
41 | <h4>As a standalone program (ssb-client):</h4> |
42 | <pre> |
43 | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
44 | cd patchfoo |
45 | ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 |
46 | npm start |
47 | </pre> |
48 | |
49 | <h4>or as a sbot plugin:</h4> |
50 | <pre> |
51 | mkdir ~/.ssb/node_modules |
52 | cd ~/.ssb/node_modules |
53 | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
54 | cd patchfoo |
55 | ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 |
56 | node enable-plugin.js |
57 | </pre> |
58 | <p>Restart ssb-server or Patchwork.</p> |
59 | <p>Visit patchfoo at <a href="http://localhost:8027/">http://localhost:8027/</a>.</p> |
60 | </body> |
61 | </html> |
62 |
Built with git-ssb-web