/rock-paper-scissors

Training repository for Phoenix and OTP

Primary LanguageElixir

RockPaperScissors

To start, clone the repo and git checkout starter

Then:

  1. Install dependencies with mix deps.get
  2. Configure your postgres user in your database files in config/[dev|test].exs
  3. Create and migrate your database with mix ecto.create && mix ecto.migrate
  4. Install js dependencies with npm install
  5. Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

Checklist

  • Start a new game
  • Get list of running games
  • Join a game
  • Make a move
  • Calculate winner
  • Log game events
  • Pipe game events to Phoenix

Additional features

  • Tracking score
  • Prevent cheating

Tutorial

Shows commits and descriptions since the starter tag.

git log --pretty=format:'%Cgreen%h - %Cred%s%Creset%n%b' --reverse starter..HEAD