Format docs

This commit is contained in:
Maciej 2026-03-01 13:24:01 +02:00
parent 64e1deca92
commit a215380cfa
Signed by: maciej
GPG key ID: 28243AF437E32F99

View file

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