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' \