Skip to content

Commit

Permalink
readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Feb 24, 2022
1 parent 38c0f48 commit a013f1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ This module:
var SecretStack = require('secret-stack')
var databasePlugin = require('./some-database')
var bluetoothPlugin = require('./bluetooth')
var config = require('./some-config')
const ssbKeys = require('ssb-keys')
var keys = ssbKeys.loadOrCreateSync(path.join(__dirname, 'secret'))

// keys are necessary for multiserver address
var config = { keys }

var App = SecretStack({ appKey: '1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=' })
.use(databasePlugin)
.use(bluetoothPlugin)

var app = App(config)
console.log('address', app.getAddress())
```

For documentation on plugins, see [PLUGINS.md](./PLUGINS.md).
Expand Down

0 comments on commit a013f1a

Please sign in to comment.