_ _ _
_ __ ___ (_)_ __ | |_ _ __ ___ | | _____ _ __
| '_ \ / _ \| | '_ \| __| | '_ \ / _ \| |/ / _ \ '__|
| |_) | (_) | | | | | |_ | |_) | (_) | < __/ |
| .__/ \___/|_|_| |_|\__| | .__/ \___/|_|\_\___|_|
|_| |_|
Install gem dependencies with bundler:
bundle install
Install postgresql, then follow the brew instructions:
brew install postgresql
Create the database:
bundle exec rake db:create db:schema:load
Start the server:
bundle exec rails s
The client stores the lock_version value of the game. Websocket events just send new lock_version values. The client asks for json that includes all the new stuff since its known lock version, and iterates through that and renders it on the page.