leompeters / tictactoe

React + Ruby On Rails API tic tac toe game w/ testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe

Tic Tac Toe game with scoreboard. React front end, Ruby On Rails REST API backend.

Try it live at: https://obscure-springs-73090.herokuapp.com/ alt text

Requirements

  • Frontend: NodeJS
sudo apt install nodejs -y
  • Backend: Ruby 2.5.3, Rails 5.2.1
\curl -sSL https://get.rvm.io | bash -s stable --ruby
rvm install 2.5.3
rvm use ruby-2.5.3
gem install rails

Running

  • Open two terminal windows, in the first run:
git clone https://github.com/MiloTodt/tictactoe.git
cd tictactoe
cd backend
bundle install
rake db:setup
rails server -p 3001

alt text

  • In the second terminal, navigate to /tictactoe/frontend
cd frontend
npm start

alt text

  • This page should open in your browser alt text

About

React + Ruby On Rails API tic tac toe game w/ testing


Languages

Language:Ruby 59.9%Language:JavaScript 32.2%Language:CSS 4.8%Language:HTML 3.1%