https://github.com/ded/rollout-ui
an admin interface for node-rollout
https://github.com/ded/rollout-ui
nodejs redis rollout
Last synced: 12 months ago
JSON representation
an admin interface for node-rollout
- Host: GitHub
- URL: https://github.com/ded/rollout-ui
- Owner: ded
- License: mit
- Created: 2017-09-22T19:44:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T04:45:12.000Z (over 8 years ago)
- Last Synced: 2025-03-25T11:11:29.213Z (about 1 year ago)
- Topics: nodejs, redis, rollout
- Language: HTML
- Size: 163 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Rollout UI
an administration interface built for the [node-rollout](https://github.com/mix/node-rollout) module.
```sh
npm i rollout-ui --save
```
Mount the `rollout-ui` Express sub-router to your existing application.
```js
// obtain an instance of your rollouts
let redis = require('redis').createClient()
let rollout = require('node-rollout')(redis)
// include rollout-ui with your rollout instance
app.use('/admin/rollout', require('rollout-ui').client(rollout))
// consider a layer of authentication
let basicAuth = require('express-basic-auth')
app.use('/admin/rollout', basicAuth({{ users: { 'admin': 'secret' }}}), require('rollout-ui').client(rollout))
```
Visit your custom route: In the above scenario: `example.com/admin/rollout`
It looks like this:
