n8ta / draft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aeon of Storms Drafting

Simple Rails applications to make drafting for the game aeon of storms not so damn slow.

PRs welcome. My goal is to build a tool to allow people to create their own draft format (see seeds.rb for an example template). But I don't have time at the moment.

License: http://www.wtfpl.net/

Tech

Rails

Stores a simple json column in the database with the current state of each draft. Also stores a unique identifier in the session of each client.

Publishes this state to an action cable channel.

React

Subscribes to the action cable channel listens for changes, then handles the UI based on the state sent from react.

Captain users are able to dispatch events to the reducer in the rails app via a PATCH request. Actions are things like, pick hero, ban hero, pick player etc. This triggers a new state to be sent to all subscriber.

About


Languages

Language:Ruby 58.0%Language:JavaScript 32.1%Language:HTML 8.6%Language:CSS 1.2%Language:Shell 0.1%