https://github.com/zauberware/node-kue-express-ui-heroku-example
Kue Express UI running on heroku + redis
https://github.com/zauberware/node-kue-express-ui-heroku-example
background-jobs basic-auth delayed-jobs express heroku kue kue-express-ui kue-ui node
Last synced: 7 months ago
JSON representation
Kue Express UI running on heroku + redis
- Host: GitHub
- URL: https://github.com/zauberware/node-kue-express-ui-heroku-example
- Owner: zauberware
- License: mit
- Created: 2018-08-11T17:20:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T22:57:41.000Z (about 7 years ago)
- Last Synced: 2025-01-21T05:26:59.696Z (9 months ago)
- Topics: background-jobs, basic-auth, delayed-jobs, express, heroku, kue, kue-express-ui, kue-ui, node
- Language: JavaScript
- Size: 124 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node Kue Express UI Example running on Heroku
You might use [kue](https://github.com/Automattic/kue) in your application to run jobs in the background. [kue-ui-express](https://github.com/stonecircle/kue-ui-express) provides a nice UI to monitor those jobs. This example is a ready to go monitoring app which can be deployed to Heroku easily.
[](https://heroku.com/deploy?template=https://github.com/zauberware/node-kue-express-ui-heroku-example/tree/master)
## Dependencies
It uses `kue-ui-express`, `basic-auth` and `redis`!
## Install App on localhost
Clone repository locally:
`$ git clone git@github.com:zauberware/node-kue-express-ui-heroku-example.git && cd node-kue-express-ui-heroku-example`.
Install dependencies:
`$ npm install`.
Setup environment variables:
Copy `.env.sample` to `.env`. Your `.env` should look like:
```
REDIS_URL=redis://localhost:6379
USERNAME=user
PASSWORD=password
PORT=5001
```
Open a terminal window and be sure that you run a redis server. Start server:
`$ redis-server`
Start server:
`$ npm start`
or
`$ babel-node start-server.js`
or with Procfile and `heroku-local` cli feature:
`$ heroku local`
## Installation on heroku
[](https://heroku.com/deploy?template=https://github.com/zauberware/node-kue-express-ui-heroku-example/tree/master)
Or manually:
1. Create a new app on heroku.
2. Add Heroku Redis or RedisToGo. (If you use RedisToGo you have to change the ENV var in the script.) Note that this app is only the monitoring application. If you have a existing Redis isntance you have to set the link oni the REDIS_URL env var.
3. Be sure all environment variables are set on heroku
4. Add heroku as a remote repository
5. Push to master and deploy the app
### Security
To secure the connection between redis and your dynos you have setup the Stunnel Buildpack. Read more here https://devcenter.heroku.com/articles/securing-heroku-redis
Installation instruction for buildkit: https://github.com/heroku/heroku-buildpack-redis
See our branch `tunnel` and see the changes in `Procfile` and `Procfile.dev` https://github.com/zauberware/node-kue-express-ui-heroku-example/tree/tunnel