bcf5f600d5
* add roll dice example in Erlang with Elli * cleanup index page template formatting * fix index/1 type spec * remove index.js which gets compiled by npm * roll dice: use 127.0.0.1 for node name to work for everyone
18 lines
245 B
Markdown
18 lines
245 B
Markdown
roll_dice
|
|
=====
|
|
|
|
Run the project:
|
|
|
|
```
|
|
$ OTEL_EXPORTER_OTLP_PROTOCOL=grpc OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 rebar3 shell
|
|
```
|
|
|
|
Roll a die:
|
|
|
|
```
|
|
$ curl localhost:3000/rolldice
|
|
4
|
|
```
|
|
|
|
Or go to `localhost:3000` in a browser to roll.
|