git ssb

0+

mixmix / scuttle-gathering



Tree: 395d9a4d0f8d253a639f2740e619cdc11a4a873a

Files: 395d9a4d0f8d253a639f2740e619cdc11a4a873a / research / server.js

580 bytesRaw
1const Server = require('scuttlebot')
2const fs = require('fs')
3const Path = require('path')
4
5const config = require('./config')
6
7Server
8 .use(require('scuttlebot/plugins/master'))
9 .use(require('ssb-query'))
10 .use(require('ssb-backlinks'))
11
12const 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
16const manifest = server.getManifest()
17fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
18
19module.exports = server
20

Built with git-ssb-web