Play mahjong with your friends online!
- Install dependencies, create DB, run migrations, and build assets:
mix setup - Create and migrate the test database:
MIX_ENV=test mix ecto.setup - Run tests:
mix test - Start server:
mix phx.server - Visit http://localhost:4000
mix setup
MIX_ENV=test mix ecto.setupmix phx.server
# with pry
iex -S mix phx.serveriex -S mixfly pg connect -a mahjongwind-db -d mahjongwindFormat game state:
SELECT jsonb_pretty(state) FROM games WHERE id = 1;mix test
# with pry
iex -S mix test <file>The main branch is configured to automatically deploy to Fly.io. For details see .github/workflows/fly.yml.
To deploy manually:
flyctl deploy --remote-only- List outdated packages:
mix hex.outdated - Package info:
mix hex.info <package> - Find security issues:
mix hex.audit- Should be taken care of by Dependabot
- Update a package:
mix deps.update <package>
mix credo