Make sure you have PostgreSQL installed and running.
See config/dev.exs
for PostgreSQL configuration.
Run mix ecto.reset
to set up the database.
To start your Phoenix server:
- Run
mix setup
to install and setup dependencies - Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
At localhost:4000
you can create a game or join a game.
You need only your name to create a game. In the URL you'll find a game id like localhost:4000/game/big-old-long-id
Give the other player the big-old-long-id
and with their name, they'll be able to join the game.
Some features are still missing.
- Game can be created
- Players can join game
- Host can start game
- Players can bet
- Players can check
- Players can call
- Players can fold
- Dealer is plays flop, turn, and river
- Pot and Side Pot are managed
- A round of poker can be played
- Basic functionality has automatic tests
- Deployed?