/protohacker

Implementation of the protohacker challenges

Primary LanguageElixir

Protohacker

build and test badge

Implementation of the Protohackers challenges

Setup dev environment

  • install elixir 1.14
  • install docker

Try Locally

The server will listen on port 5555

run iex -S mix to start the server locally

run telnet 127.0.0 5555 to test via telnet

Publish to Stackpath

build image and publish to docker registry

docker build -t derhackler/protohack:0.3.0 .
docker push derhackler/protohack:0.3.0

deploy to stackpath prerequisite

  1. Register an account on stackpath.com
  2. Create a new stack called 'protohack'
  3. Create an API Token in the UI
  4. Set your environment variables:
export STACKPATH_CID=[YOUR_CLIENT_ID]
export STACKPATH_CS=[YOUR_CLIENT_SECRET]
  1. Compile the project mix compile

deploy

  1. run mix my.deploy derhackler/protohack:0.3.0
  2. copy the ip address from the ui

cleanup

delete the workload via the stackpath ui