git ssb

2+

mixmix / ticktack



Tree: 3c1fa0eb2d1683293c08cd3ba12a247424bf2c5a

Files: 3c1fa0eb2d1683293c08cd3ba12a247424bf2c5a / background-process.js

967 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 .use(require('ssb-server-channel'))
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