spirelli/clickcount
A simple click counter
| src | Initial commit | |
| .gitignore | Initial commit | |
| Cargo.lock | Initial commit | |
| Cargo.toml | Added author and description | |
| flake.lock | Fixed nix flake | |
| flake.nix | Fixed nix flake | |
| README.md | Fix typo | |
clickcount
A simple click counter
Can be used with nix run, or just normally e.g.
# with nix run
nix run git+https://codeberg.org/spirelli/clickcount <address>
# with cargo run
cargo run -- <address>
# generating and running the executable
cargo build
target/{debug, release}/clickcount <address>
Here, <address> is the address and port to bind to. Afterwards, the following pages will be accessible over HTTP:
http://<address>/incrementincrements the counter by 1http://<address>/countdisplays the current count