https://github.com/selfup/load_bah
A place for people to show they are working with scripts that have known goals
https://github.com/selfup/load_bah
Last synced: 9 months ago
JSON representation
A place for people to show they are working with scripts that have known goals
- Host: GitHub
- URL: https://github.com/selfup/load_bah
- Owner: selfup
- License: mit
- Created: 2018-04-04T18:33:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-12T02:13:07.000Z (about 8 years ago)
- Last Synced: 2025-01-22T15:11:22.304Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Load Bah
A place for your team to make get requests (easy in curl) to update load bars!
### Starting the application
`npm start`
You can set the port: `$PORT=8888 npm start`
Or it just defaults to `8080`
**GET**
With ENV vars:
```bash
curl -s ":$PORT/script_name/current_progress/total_progress"
```
Without env vars:
```bash
curl -s localhost:8080/script_name/current_progress/total_progress
```
_You can use `-v` if you want verbose output, but typically you want very little output via `-s`_
**NOW**
You view the output via: `:$PORT/`
_the source code is quite small, I am sure you can figure out the rest_ :smile:
### Private (LAN) network
Discover the machine IP:
`ifconfig | grep '10.'`
or
`ifconfig | grep '192.'`
or
`ifconfig | grep '172.'`
Should be `eth0` on ethernet or otherwise on `WLAN`
***
That's it! :tada: