Files: 395d9a4d0f8d253a639f2740e619cdc11a4a873a / research / server.js
580 bytesRaw
1 | const Server = require('scuttlebot') |
2 | const fs = require('fs') |
3 | const Path = require('path') |
4 | |
5 | const config = require('./config') |
6 | |
7 | Server |
8 | .use(require('scuttlebot/plugins/master')) |
9 | .use(require('ssb-query')) |
10 | .use(require('ssb-backlinks')) |
11 | |
12 | const server = Server(config) |
13 | |
14 | // this is required for ssb-client to consume |
15 | // it's a list of methods that can be called remotely, without this code we won't be able to call our new plugin |
16 | const manifest = server.getManifest() |
17 | fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest)) |
18 | |
19 | module.exports = server |
20 |
Built with git-ssb-web