git ssb

2+

mixmix / ticktack



Tree: 4b1c31ae7dd3ae3fce434f77355fd0bb0ecbbbbd

Files: 4b1c31ae7dd3ae3fce434f77355fd0bb0ecbbbbd / background-process.js

961 bytesRaw
1var fs = require('fs')
2var Path = require('path')
3var electron = require('electron')
4
5var createSbot = require('scuttlebot')
6 .use(require('scuttlebot/plugins/master'))
7 .use(require('scuttlebot/plugins/gossip'))
8 .use(require('scuttlebot/plugins/replicate'))
9 .use(require('ssb-friends'))
10 .use(require('ssb-blobs'))
11 .use(require('ssb-backlinks'))
12 .use(require('ssb-private'))
13 .use(require('scuttlebot/plugins/invite'))
14 .use(require('scuttlebot/plugins/local'))
15 .use(require('scuttlebot/plugins/logging'))
16 .use(require('ssb-query'))
17 .use(require('ssb-about'))
18 .use(require('ssb-contacts'))
19 // .use(require('ssb-ebt'))
20 .use(require('ssb-ws'))
21
22// pull config options out of depject
23var config = require('./config').create().config.sync.load()
24
25var sbot = createSbot(config)
26var manifest = sbot.getManifest()
27fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
28electron.ipcRenderer.send('server-started')
29

Built with git-ssb-web