git ssb

16+

Dominic / patchbay



Tree: c92a93967bb396f80301e13f0ca7d85b544f71b4

Files: c92a93967bb396f80301e13f0ca7d85b544f71b4 / background-process.js

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

Built with git-ssb-web