git ssb

3+

dangerousbeans / scuttle-vue



Commit 0320245ed709d0d31b3ecf59db9a0797e8b0926e

setup instructions

Joran committed on 11/16/2017, 8:19:33 PM
Parent: 6532a95fbaf049065df039bfed53bb960ea08403

Files changed

README.mdchanged
src/components/Message.vuechanged
README.mdView
@@ -1,8 +1,14 @@
11 # ScuttleVue
22
3 +`ssb://%8vv8XCSh/Xbq1iEiJ0Kucl746jltMGPOduqOE3CYQ3Q=.sha256`
4 +
35 > A VueJS based scuttlebutt client based on Minbay and depject
46
7 +A scuttlebutt decentralised network browser client designed to be easy to change the templates for, while trying to abstract away the raw data stuff.
8 +
9 +
10 +
511 ## Build Setup
612
713 ``` bash
814 # install dependencies
@@ -10,10 +16,37 @@
1016
1117 # serve with hot reload at localhost:8080
1218 npm run dev
1319
14-# build for production with minification
20 +# build for production
1521 npm run build
1622
1723 ```
1824
19-For more information see the [docs for vueify](https://github.com/vuejs/vueify).
25 +## Scuttlebutt Setup
26 +
27 +``` bash
28 +# install scuttlebutt
29 +npm i scuttlebot@latest -g
30 +
31 +# spin up sbot
32 +sbot server
33 +
34 +# in another process, accept an invite and sync to the scuttleverse
35 +sbot invite.accept "ws://the_pub_you_got_an_invite_from~shs:TXKFQehlyoS_invite_code_blah_blah="
36 +
37 +# get your local sbot websocket address
38 +sbot getAddress
39 +
40 +# get your public/private key
41 +cat ~/.ssb/private
42 +
43 +# place these in browser storage (until this part is built in the app)
44 +
45 +localStorage.setItem("/.ssb/secret", '{"curve":"ed25519","public":"IZckcDcgB....."}')
46 +
47 +localStorage.setItem("browser/.ssb/secret", '{"curve":"ed25519","public":"IZckcDcgB....."}')
48 +
49 +localStorage.setItem("remote", 'ws://localhost:8989~shs:TXKFQ.....=')
50 +```
51 +
52 +```
src/components/Message.vueView
@@ -66,11 +66,12 @@
6666 }
6767
6868 if(a.length > 1)
6969 {
70- console.log(a)
71- // TODO: This seems to cause problems
72- // this.relatedMessages = a.map(function(e){ return nn(e) })
70 + // console.log(a)
71 + // remove last item as it's a ref to this message
72 + a.splice(-1,1)
73 + this.relatedMessages = a.map(function(e){ return nn(e) })
7374 }
7475
7576 },
7677

Built with git-ssb-web