git ssb

16+

Dominic / patchbay



Tree: a1cc908405943c59caa0f25427931456791123b8

Files: a1cc908405943c59caa0f25427931456791123b8 / background-process.js

992 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
24// pull config options out of depject
25var config = require('./config').create().config.sync.load()
26
27var sbot = createSbot(config)
28var manifest = sbot.getManifest()
29fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
30electron.ipcRenderer.send('server-started')
31
32

Built with git-ssb-web