https://github.com/zerefwayne/dummy-newman-ui
A dummy app built as a proof of concept for Daemon and UI for newman.
https://github.com/zerefwayne/dummy-newman-ui
Last synced: over 1 year ago
JSON representation
A dummy app built as a proof of concept for Daemon and UI for newman.
- Host: GitHub
- URL: https://github.com/zerefwayne/dummy-newman-ui
- Owner: zerefwayne
- Created: 2021-03-25T18:49:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T03:09:37.000Z (about 5 years ago)
- Last Synced: 2025-01-22T07:17:18.128Z (over 1 year ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Demo App
### [Video Demo](https://user-images.githubusercontent.com/28949397/112529472-4fb3e800-8dcb-11eb-8292-c88b4bfd0fe5.mp4)
## Components
### Daemon Script
The daemon script is a NodeJS script which listens for messages from the DummyNewman process updates and broadcasts them to dashboard listening to them.
### DummyNewman
DummyNewman is a dummy implementation of newman that connects to daemon and sends process updates to it for being displayed on the dashboard.
### Dashboard
Dashboard is a simple HTML, JS App that connects to Daemon if running and listens for updates that it might have.
## How to start?
1. Run `npm install` to install dependencies.
2. Run `npm install -g http-server-spa`.
3. Run `http-server-spa dummyweb index.html 8081` and head over to http://localhost:8081 to see the webpage.
4. Run `cd dummynewman && node index.js` to start the dummy newman job.
5. It will automatically spawn the daemon and connect to it.
## Spawning the daemon
DummyNewman output when daemon is running:
```
➜ dummynewman node index.js
(re)Connecting to ws://localhost:8080
Daemon running, connected to: ws://localhost:8080
```
If DummyNewman detects that the server is not running: It will automatically spawn the daemon script, wait for 2 seconds and retry connecting to the daemon on `ws://localhost:8080`
DummyNewman output when daemon is not running:
```
➜ dummynewman node index.js
(re)Connecting to ws://localhost:8080
Daemon not running, retrying to spawn daemon.
(re)Connecting to ws://localhost:8080
Daemon running, connected to: ws://localhost:8080
```