git ssb

3+

dangerousbeans / scuttle-vue



Tree: 8581d6b0616fcc78fc397b1529105c5dde79c69b

Files: 8581d6b0616fcc78fc397b1529105c5dde79c69b / serve.js

613 bytesRaw
1var http = require('http');
2var serve = require('ecstatic');
3var client = require('ssb-client')
4var party = require('ssb-party')
5
6opts = {"allowPrivate": true}
7
8party(opts, function (err, sbot) {
9 http.createServer(
10 serve({ root: __dirname + '/build/'})
11 ).listen(3013)
12
13 opts = {"modern": true}
14
15 client(function (err, sbot) {
16 if(err) throw err
17 sbot.invite.create(opts, function (err, invite) {
18 if(err) throw err
19 var lite = invite
20 console.log('Your lite client is now listening at http://localhost:3013\nHere\'s an invite\nhttp://localhost:3013#' + invite)
21 })
22 })
23})
24
25

Built with git-ssb-web