blob: bef23639c09576e991e7c8747e557d3f444542dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# 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-hash` to create user and admin hashes
- With cURL: `curl -u username:password <address>/generate-hash`
- Put generated hashes into `~/.status/auth`
- Restart the server
- Set a message
- With cURL: `curl -u username:password -d 'message' -X POST <address>/update`
- Read the message
- With cURL: `curl -u username:password <address>`
If that seems incredibly janky, that's because it is :3
## Compiling
Requirements
- go >= 1.22.5
Instructions:
1. Clone the repo
```bash
git clone https://github.com/CartConnoisseur/status
cd status
```
2. Install dependencies
```bash
go mod tidy
```
3. Compile
```bash
go build -o status
```
The server can then be run via `./status <port>`.
|