git ssb

16+

Dominic / patchbay



Tree: 9dac5d8e3155719f40b44b011fea5a09c6732532

Files: 9dac5d8e3155719f40b44b011fea5a09c6732532 / background-process.js

1117 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('scuttlebot/plugins/invite'))
12 .use(require('scuttlebot/plugins/local'))
13 .use(require('scuttlebot/plugins/logging'))
14 .use(require('ssb-about'))
15 .use(require('ssb-backlinks'))
16 .use(require('ssb-blobs'))
17 .use(require('ssb-chess-db'))
18 .use(require('ssb-ebt'))
19 .use(require('ssb-friends'))
20 .use(require('ssb-meme'))
21 .use(require('ssb-private'))
22 .use(require('ssb-query'))
23 .use(require('ssb-search'))
24 .use(require('ssb-ws'))
25 // .use(require('ssb-mutual')) // this is has recursion problems atm
26
27// pull config options out of depject
28var config = require('./config').create().config.sync.load()
29
30var sbot = createSbot(config)
31var manifest = sbot.getManifest()
32fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
33electron.ipcRenderer.send('server-started')
34

Built with git-ssb-web