git ssb

16+

Dominic / patchbay



Tree: 916bd66722dcbec3a08c1049de38ed0d17a92cc6

Files: 916bd66722dcbec3a08c1049de38ed0d17a92cc6 / background-process.js

1024 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-contacts'))
21 .use(require('ssb-fulltext'))
22 // .use(require('ssb-ebt'))
23 .use(require('ssb-ws'))
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
33

Built with git-ssb-web