Add a mock server
This commit is contained in:
17
README.md
17
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
|
||||
|
Reference in New Issue
Block a user