- Install Docker
docker run -d -p 4000:4000 noelbk/battle_snake_server
- Connect to http://localhost:4000
- Install OTP 19 (skip if you have OTP)
- get kerl
kerl build 19.2 19.2
kerl install 19.2 /opt/erlang/installs/19.2
. /opt/erlang/installs/19.2/activate
- Install Elixir v1.4 (skip if you have Elixir)
- get kiex
kiex install 1.4
kiex use 1.4
git clone [email protected]:Dkendal/battle_snake.git
cd battle_snake
mix do deps.get, compile, battle_snake.createdb
npm install
- Start the Phoenix endpoint with
PORT=4000 iex --sname battle_snake_dev -S mix phoenix.server
I would reccomend naming the node that you run your dev server, as running mix test
will clobber the default Mnesia database.
- Erlang OTP 19
- Elixir 1.4
I suggest managing your OTP version with kerl and your elixir version with kiex
mix test
docker build --rm -t battle_snake_server .
docker run -d -p 4000:4000 battle_snake_server
- Connect to http://localhost:4000