Skip to content

ioki-mobility/tik-tak-tioki

Repository files navigation

A Tic Tac Toe game server that provides an API for you to create your own Tic Tac Toe client.

Background

This API is meant to be used at a one-day hackathon.

Therefore this API is designed in a way that it can be used in a pragmatic way, even if this might hurt some best practices in REST-API design.

Run

Install dependencies

bundle install

Start Rails Console

bundle exec rails c

Run all tests

bundle exec rspec

Setup Deployment via fly.io

Check out Installing flyctl

brew install flyctl

Build, Deploy and Run a Rails Application

flyctl launch

Deploy the app via fly.io

fly deploy --remote-only --verbose --no-cache

If you are stuck in the remote Docker build process, try to enable websockets for data transfer:

flyctl wg websockets enable

Open the Rails Console via fly.io

fly ssh console
bash
cd /app
bin/rails c

Misc Remarks

Random Name Generator

We want heroku-style autogenerated names for games. We use the dictionaries of the Glitch word list as a starting point. Combined with a postfix random number, this should allow for over 1000 * 1000 * 10_000 (10 billion) combinations.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published