Commit 36a30d07b0d94709cac2893f718449c34a55d883
Add install guide
&OI38eGVcd3NAwu6F0qMAKXAvrtuLO30EX7Whqc1QBZc=.sha256cel committed on 3/12/2019, 9:11:43 AM
Parent: eba01998e1a0d9172feb30fca0e73c74f4009582
Files changed
doc/install-guide.html | added |
doc/install-guide.html | |||
---|---|---|---|
@@ -1,0 +1,72 @@ | |||
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</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": 10000000 | ||
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-1.10.2 && cd /tmp/ssb-npm-registry-1.10.2 && | ||
38 … | +curl -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> | ||
46 … | +ssb-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> | ||
54 … | +git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo | ||
55 … | +cd patchfoo | ||
56 … | +ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256 | ||
57 … | +npm start | ||
58 … | +</pre> | ||
59 … | + | ||
60 … | +<h4>or as a sbot plugin:</h4> | ||
61 … | +<pre> | ||
62 … | +mkdir ~/.ssb/node_modules | ||
63 … | +cd ~/.ssb/node_modules | ||
64 … | +git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo | ||
65 … | +cd patchfoo | ||
66 … | +ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256 | ||
67 … | +sbot 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> |
Built with git-ssb-web