aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-02-01 10:37:15 +0100
committerEugen Wissner <belka@caraus.de>2025-02-01 10:37:15 +0100
commite9bf0d84b8bc456e958eda5b52a0e9218fab6163 (patch)
treee1f22039018a6a698e516387f49ee272b1d97c87 /README.md
parent957a161ec181b03f8cf7ea5bae932c2d8408ada9 (diff)
downloadkazbek-e9bf0d84b8bc456e958eda5b52a0e9218fab6163.tar.gz
Add a mock server
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1d42338..2e256cb 100644
--- a/README.md
+++ b/README.md
@@ -8,4 +8,21 @@ according to the meta information saved in the audio files. The audio files are
expected to be in 2 directories, the artist and album directories. These
directories are also renamed.
+## mock\_server.rb
+
+mock\_server.rb takes some JSON on its STDIN and starts a simple HTTP server that
+slowly (in chunks) answers all requests with the given input.
+
+For example:
+
+```sh
+echo '{"var": "stuff"}' | ./bin/mock_server.rb
+```
+
+and in another session:
+
+```
+curl localhost:8082
+```
+
## tea-cleaner