Files: 9132118089771e8d960b2590aece46b1b7f121a7 / server.js
1277 bytesRaw
1 | // formerly background-process.js |
2 | var fs = require('fs') |
3 | var Path = require('path') |
4 | var electron = require('electron') |
5 | |
6 | console.log('STARTING SBOT') |
7 | |
8 | var 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 |
32 | var config = require('./config').create().config.sync.load() |
33 | |
34 | var sbot = createSbot(config) |
35 | var manifest = sbot.getManifest() |
36 | fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest)) |
37 | electron.ipcRenderer.send('server-started') |
38 |
Built with git-ssb-web