GithubHelp home page GithubHelp logo

jrstarke / battle_snake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stembolthq/battle_snake

0.0 2.0 0.0 692 KB

BattleSnake 2017 Game Server

Home Page: https://stembolthq.github.io/battle_snake/

Ruby 0.47% JavaScript 16.65% Elixir 62.05% Shell 0.57% CSS 15.73% HTML 4.52%

battle_snake's Introduction

Battle Snake Server Build Status Coverage Status

it's just a prank bro

Quicker Start

Quick Start

  • 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.

Perquisites

  • Erlang OTP 19
  • Elixir 1.4

I suggest managing your OTP version with kerl and your elixir version with kiex

Testing

mix test

Building the docker image locally

  • docker build --rm -t battle_snake_server .
  • docker run -d -p 4000:4000 battle_snake_server
  • Connect to http://localhost:4000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.