Add a mock server

This commit is contained in:
2025-02-01 10:37:15 +01:00
parent 957a161ec1
commit e9bf0d84b8
2 changed files with 63 additions and 0 deletions

View File

@ -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