echo

Version, currently main branch1 version
  • main branchlatestJan 26, 2023

github.com/tanjarinne/echo-crystal

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  echo:
    github: tanjarinne/echo-crystal
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.24.2
License
MIT
Author
Tanja Álvarez
Target
  • echo from src/echo.cr

Dependencies

This version declares no dependencies.

README

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

ConfigurationEnvironmental variablePurposeDefault
Echo hostECHO_HOSTThe host Echo will run on0.0.0.0
Echo portECHO_PORTThe port Echo will listen to8018

Running

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

TargetDescriptionExamples
runRun the service$ make runListening on 0.0.0.0:8018
buildBuild the binary$ make buildcrystal build -p -t --verbose --error-trace -o echo src/echo.crcc "${@}" -o /home/......
cleanDelete 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