git ssb

2+

mixmix / ticktack



Tree: 1967ee98ce129f2ab3b072bcdeac1ad9f0990092

Files: 1967ee98ce129f2ab3b072bcdeac1ad9f0990092 / 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