https://github.com/runnable/reactive-client
A client app for reactive-demo
https://github.com/runnable/reactive-client
Last synced: 2 months ago
JSON representation
A client app for reactive-demo
- Host: GitHub
- URL: https://github.com/runnable/reactive-client
- Owner: Runnable
- License: mit
- Created: 2017-02-02T20:03:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T21:52:36.000Z (about 9 years ago)
- Last Synced: 2025-03-05T16:27:22.774Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reactive-client
A client app for reactive-demo
## Usage
### Docker
`docker run -it runnable/reactive-client`
### Node.js
1. `git clone git@github.com:Runnable/reactive-client.git`
2. `cd reactive-client`
3. `npm install`
4. `npm start`
## Editing
The function exported in `index.js` runs when our system receives a comment.
Do anything you want with it!
If you want to keep the same queue across restarts set the `APP_NAME` environment variable to something unique. All servers with `APP_NAME` will share the same queue.
NOTE: The function must return a promise.
## Files
* `index.js`: contains function ran when system receives comment
* `server.js`: entry point of this service. Creates and run worker server.