Echo is a service that responds with any header or body you send over, as-is.
This project is intended to be educational, for-research-only and solving a fictional problem, and is not intended to work on any production environment whatsoever as it can potentially leak private information due to its most basic functionality.
- Crystal Lang >=
0.24.2
(2018-03-10)
Configuration | Environmental variable | Purpose | Default |
---|---|---|---|
Echo host | ECHO_HOST |
The host Echo will run on | 0.0.0.0 |
Echo port | ECHO_PORT |
The port Echo will listen to | 8018 |
A Makefile is provided to handle common operations – like running the service.
Target | Description | Examples |
---|---|---|
run |
Run the service | $ make run |
build |
Build the binary | $ make build |
clean |
Delete the binary | $ make clean |
Or rather using crystal
binary:
- Running:
$ crystal run src/echo.cr
Listening on 0.0.0.0:8018
- Building a binary:
crystal build src/echo.cr
...
Refer to Crystal's documentation for more information and help.
Tanja Álvarez 2018