git ssb

16+

cel / patchfoo



Tree: 36a30d07b0d94709cac2893f718449c34a55d883

Files: 36a30d07b0d94709cac2893f718449c34a55d883 / doc / install-guide.html

1910 bytesRaw
1<!doctype html>
2<html>
3<head>
4<meta charset=utf-8>
5<title>ssb-npm + git-ssb + patchfoo install</title>
6<style>
7body {
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</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>
19echo prefix=$HOME/.local >> ~/.npmrc
20echo PATH=\$PATH:$HOME/.local/bin >> ~/.profile
21PATH=$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": 10000000
30 }
31}
32</pre>
33<p>Restart ssb-server or Patchwork.</p>
34
35<h3>Install ssb-npm</h3>
36<pre>
37mkdir -p /tmp/ssb-npm-registry-1.10.2 && cd /tmp/ssb-npm-registry-1.10.2 &&
38curl -s 'http://localhost:8989/blobs/get/&U7z22fE8SpMiwZMQtUdDvbRUQ9NHTAXdosjzcJD3j/I=.sha256' | tar xz &&
39./package/bootstrap/bin.js --ws-url http://localhost:8989 \
40 --branch %1WiEpn3ymmfO4n7k5Q7V3mIQUO4+v2nlFomxYZhPYyY=.sha256 \
41 -- install -g ssb-npm@1.7.1
42</pre>
43
44<h3>Install git-ssb</h3>
45<pre>
46ssb-npm install -g git-ssb@2.6.1 \
47 --branch %+GtKJu3CCEQlDzGmJbZaGP3yrJCEIvUbvBq3BpuoRmE=.sha256
48</pre>
49
50<h3>Clone and install patchfoo</h3>
51
52<h4>As a standalone program (ssb-client):</h4>
53<pre>
54git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
55cd patchfoo
56ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256
57npm start
58</pre>
59
60<h4>or as a sbot plugin:</h4>
61<pre>
62mkdir ~/.ssb/node_modules
63cd ~/.ssb/node_modules
64git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
65cd patchfoo
66ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256
67sbot plugins.install patchfoo
68</pre>
69<p>Restart ssb-server or Patchwork.</p>
70<p>Visit patchfoo at <a href="http://localhost:8027/">http://localhost:8027/</a>.</p>
71</body>
72</html>
73

Built with git-ssb-web