git ssb

3+

dangerousbeans / scuttle-vue



Tree: a63d09aea4eb1285303e6d2a6b3f28c03fb6c6d8

Files: a63d09aea4eb1285303e6d2a6b3f28c03fb6c6d8 / 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