status
Just something I threw together real quick for an incredibly specific and niche use case (displaying silly little messages on my girlfriend's dashboard)
Usage
- Create
~/.status/auth - Run the server (see compilation instructions below)
- Make requests to
/generate-hashto create user and admin hashes- With cURL:
curl -u username:password <address>/generate-hash
- With cURL:
- Put generated hashes into
~/.status/auth - Restart the server
- Set a message
- With cURL:
curl -u username:password -d 'message' -X POST <address>/update
- With cURL:
- Read the message
- With cURL:
curl -u username:password <address>
- With cURL:
If that seems incredibly janky, that's because it is :3
Compiling
Requirements - go >= 1.22.5
Instructions: 1. Clone the repo
git clone https://github.com/CartConnoisseur/status
cd status
- Install dependencies
go mod tidy
- Compile
go build -o status
The server can then be run via ./status <port>.