git ssb

2+

mixmix / ticktack



Tree: 694978a487789cef28e4d34a9189927297a6d861

Files: 694978a487789cef28e4d34a9189927297a6d861 / background-process.js

929 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-ebt'))
19 .use(require('ssb-ws'))
20
21// pull config options out of depject
22var config = require('./config').create().config.sync.load()
23
24var sbot = createSbot(config)
25var manifest = sbot.getManifest()
26fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
27electron.ipcRenderer.send('server-started')
28

Built with git-ssb-web