git ssb

16+

cel / patchfoo



Tree: c761008b5ab9e6a313b4031c440472ef39d59928

Files: c761008b5ab9e6a313b4031c440472ef39d59928 / doc / install-guide.html

1812 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; 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>
19echo prefix=$HOME/.local &gt;&gt; ~/.npmrc
20echo PATH=\$PATH:$HOME/.local/bin &gt;&gt; ~/.profile
21PATH=$PATH:$HOME/.local/bin
22</pre>
23
24<h3>Install ssb-npm</h3>
25<pre>
26mkdir -p /tmp/ssb-npm-registry-2.1.3 &amp;&amp; cd /tmp/ssb-npm-registry-2.1.3 &amp;&amp;
27curl -s 'http://localhost:8989/blobs/get/&amp;ptkWRUIPdBGTZ3W2BWPBuyFw4RumSjQu/DPJ3kufk1s=.sha256' | tar xz &amp;&amp;
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>
35ssb-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>
43git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
44cd patchfoo
45ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
46npm start
47</pre>
48
49<h4>or as a sbot plugin:</h4>
50<pre>
51mkdir ~/.ssb/node_modules
52cd ~/.ssb/node_modules
53git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
54cd patchfoo
55ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
56node 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