diff options
author | Paul Duncan <pabs@pablotron.org> | 2025-03-07 22:41:31 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2025-03-07 22:41:31 -0500 |
commit | 0b5032f3f17f0fff2bea686067cce19a79dd4bb1 (patch) | |
tree | 6903ecb291d7212ee7ee60c60142645839da50d8 | |
parent | 6a6a742ee2e2fe0570a6e21c51e1821db4910dd4 (diff) | |
download | jim-bot-0b5032f3f17f0fff2bea686067cce19a79dd4bb1.tar.xz jim-bot-0b5032f3f17f0fff2bea686067cce19a79dd4bb1.zip |
README.md: add "Build" and "Tests" sections, minor wording changes
-rw-r--r-- | README.md | 36 |
1 files changed, 33 insertions, 3 deletions
@@ -1,8 +1,8 @@ # jim-bot -Web interace which generates random corporate gibberish. +Web interace which generates 10 sentences of random corporate gibberish. -Based on [pocket-jim][]. Ported from C to Go. +Based on [pocket-jim][]. Ported from C to [Go][]. ## Usage @@ -17,10 +17,40 @@ Build and run container using [Podman][]: # build container podman build -t jim-bot:latest . - # run container + # run container bound to localhost:8080 podman run -d -p 8080:8080 --restart=on-failure --name jim-bot jim-bot:latest +Then open <http://localhost:8080/> in your browser. + +## Build + +To build locally (requires [Go][]): + + # build ./jim-bot + make + + # run jim-bot on localhost:8080 + ./jim-bot + +Then open <http://localhost:8080/> in your browser. + +## Tests + +Running tests: + + # run unit tests + make test + + # run `go vet` and `staticcheck` + make check + +Note: The `check` target requires [staticcheck][]. + [pocket-jim]: https://pmdn.org/pocket-jim "pocket jim" [podman]: https://podman.io/ "podman" +[go]: https://go.dev/ + "Go programming language" +[staticcheck]: https://staticcheck.dev/docs/ + "Go static analyzer." |