pierce-clayton / onitama

A React and Rails implementation of the board game Onitama. Uses ActionCable to communicate between the server and players and allows realtime two player games.

Home Page:https://onitama.claytonpierce.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Onitama is live.

Check out the deployed project at https://onitama.claytonpierce.dev

If you want to play against yourself, open an incognito window and log in as another player.

Onitama

Onitama is a game app based on the board game of the same name. This app was built soley for educational purposes and is not intended for comercial distribution.

Onitama is built with a Rails back-end using Action Cable and a React front end using Webpack.

Requirements

  • Ruby 2.6.1
  • Rails 6.0.3
  • React 17.0.1
  • postgres 13.1

Setting up Onitama locally

First fork and clone this repo. Install the gem-file and package.json by running bundle install and yarn. Then start a Redis server brew services start redis (if you need to install Redis check here)

Initializing the database

Within the project directory run rails db:create and rails db: migrate

Launching the server

To launch the server simply run rails s. This will launch the game on http://localhost:300. Navigate there to play. Note: because Onitama uses action action cable and is played on two idfferent browser windows, if you wish to play on one computer where the game is served locally you will may need to open one of the windows in incognito mode.

Example of app usage and game play

Onitma login process

Onitama Game Play

Created By

Will Lytle, Clay Pierce, and Amanda Reis

About

A React and Rails implementation of the board game Onitama. Uses ActionCable to communicate between the server and players and allows realtime two player games.

https://onitama.claytonpierce.dev


Languages

Language:JavaScript 52.1%Language:Ruby 37.9%Language:HTML 6.0%Language:SCSS 4.0%