Files: a7f5b23b2eb2b101fd1bb40cb77fbf879dc6fd0f / doc / install-guide.html
2162 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 2019-11-29</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>Enable large ssb blobs</h3> |
25 | <p>Put into <code>~/.ssb/config</code>:</p> |
26 | <pre> |
27 | { |
28 | "blobs": { |
29 | "max": 30000000 |
30 | } |
31 | } |
32 | </pre> |
33 | <p>Restart ssb-server or Patchwork.</p> |
34 | |
35 | <h3>Install ssb-npm</h3> |
36 | <pre> |
37 | mkdir -p /tmp/ssb-npm-registry-2.1.0 && cd /tmp/ssb-npm-registry-2.0.1 && |
38 | curl -s 'http://localhost:8989/blobs/get/&ICm1gBw79PitW1qUuq5jIJJtjyfkfPfpuHQfPeGpmJ4=.sha256' | tar xz && |
39 | ./package/bootstrap/bin.js --ws-url http://localhost:8989 \ |
40 | --branch %/hNT8vXLGN9IoVUwLdSbw/9UgKjFI0AOnlQl/0129Tw=.sha256 \ |
41 | install -g ssb-npm@2.0.1 |
42 | </pre> |
43 | |
44 | <h3>Install git-ssb</h3> |
45 | <pre> |
46 | ssb-npm install -g git-ssb@2.6.1 \ |
47 | --branch %+GtKJu3CCEQlDzGmJbZaGP3yrJCEIvUbvBq3BpuoRmE=.sha256 \ |
48 | --branch %RuoAU/5P9fDa/+vucRrIhq4qk4cnaQspY2Yyzu6oR7U=.sha256 |
49 | </pre> |
50 | |
51 | <h3>Clone and install patchfoo</h3> |
52 | |
53 | <h4>As a standalone program (ssb-client):</h4> |
54 | <pre> |
55 | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
56 | cd patchfoo |
57 | ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256 \ |
58 | --branch %o3t1vSU0S/cOR1HM+H5TTKTDaZbTnv+SDLVji3l0r0A=.sha256 |
59 | npm start |
60 | </pre> |
61 | |
62 | <h4>or as a sbot plugin:</h4> |
63 | <pre> |
64 | mkdir ~/.ssb/node_modules |
65 | cd ~/.ssb/node_modules |
66 | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
67 | cd patchfoo |
68 | ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256 \ |
69 | --branch %o3t1vSU0S/cOR1HM+H5TTKTDaZbTnv+SDLVji3l0r0A=.sha256 |
70 | sbot plugins.enable patchfoo |
71 | </pre> |
72 | <p>Restart ssb-server or Patchwork.</p> |
73 | <p>Visit patchfoo at <a href="http://localhost:8027/">http://localhost:8027/</a>.</p> |
74 | </body> |
75 | </html> |
76 |
Built with git-ssb-web