Skip to content

tanjarinne/echo-crystal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo

Echo is a service that responds with any header or body you send over, as-is.

About

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.

Requirements

Up and running

Configuration

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

Running

A Makefile is provided to handle common operations – like running the service.

Target Description Examples
run Run the service
$ make run
Listening on 0.0.0.0:8018
build Build the binary
$ make build
crystal build -p -t --verbose --error-trace -o echo src/echo.cr
cc "${@}" -o /home/...
...
clean Delete the binary
$ make clean

Or rather using crystal binary:

  1. Running:
$ crystal run src/echo.cr
Listening on 0.0.0.0:8018
  1. Building a binary:
crystal build src/echo.cr
...

Refer to Crystal's documentation for more information and help.

Author

Tanja Álvarez 2018

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published