From a215380cfa968d753c79bca8f9ccf6ec05353b0e Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Sun, 1 Mar 2026 13:24:01 +0200 Subject: [PATCH] Format docs --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8cfed24..d4165ef 100644 --- a/README.md +++ b/README.md @@ -16,14 +16,16 @@ MIX_ENV=prod mix build_release Then you can run 3 servers connected to one another: `_build/prod/rel/birdy_chat/bin/server_1` - runs at localhost:4001 + `_build/prod/rel/birdy_chat/bin/server_2` - runs at localhost:4002 + `_build/prod/rel/birdy_chat/bin/server_3` - runs at localhost:4003 Out of the box they communicate with one another. Send a json request to one of them and observe the results. Feel free to modify the examples below. ### A local request: -``` +```sh curl --request POST \ --url http://localhost:4001/api/messages \ --header 'content-type: application/json' \ @@ -32,7 +34,7 @@ curl --request POST \ ### A remote request: -``` +```sh curl --request POST \ --url http://localhost:4001/api/messages \ --header 'content-type: application/json' \ @@ -41,7 +43,7 @@ curl --request POST \ ### A request to unknown server: -``` +```sh curl --request POST \ --url http://localhost:4001/api/messages \ --header 'content-type: application/json' \