git ssb

16+

Dominic / patchbay



Tree: 91eff7281ce5dbfb9a1569327348c887074ac005

Files: 91eff7281ce5dbfb9a1569327348c887074ac005 / server.js

1277 bytesRaw
1// formerly background-process.js
2var fs = require('fs')
3var Path = require('path')
4var electron = require('electron')
5
6console.log('STARTING SBOT')
7
8var createSbot = require('scuttlebot')
9 .use(require('scuttlebot/plugins/master'))
10 .use(require('scuttlebot/plugins/gossip'))
11 .use(require('scuttlebot/plugins/replicate'))
12 .use(require('scuttlebot/plugins/invite'))
13 .use(require('scuttlebot/plugins/local'))
14 .use(require('scuttlebot/plugins/logging'))
15 .use(require('scuttlebot/plugins/unix-socket'))
16 .use(require('scuttlebot/plugins/no-auth'))
17 .use(require('ssb-about'))
18 .use(require('ssb-backlinks'))
19 .use(require('ssb-blobs'))
20 .use(require('ssb-chess-db'))
21 .use(require('ssb-ebt'))
22 .use(require('ssb-friends'))
23 .use(require('ssb-meme'))
24 .use(require('ssb-private'))
25 .use(require('ssb-query'))
26 .use(require('ssb-search'))
27 .use(require('ssb-unread'))
28 .use(require('ssb-ws'))
29 // .use(require('ssb-mutual')) // this is has recursion problems atm
30
31// pull config options out of depject
32var config = require('./config').create().config.sync.load()
33
34var sbot = createSbot(config)
35var manifest = sbot.getManifest()
36fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
37electron.ipcRenderer.send('server-started')
38

Built with git-ssb-web