Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.01 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.01 KB

Web application for playing Mafia game offline. What does it mean? Please, check out the blog post about it for an explanation! Or play with the version, which is available online: https://mafia-game.gq]

Development

To start the Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Tests

To run unit and acceptance tests:

To run acceptance tests in demonstrantion mode (deliberately slower to view the behaviour of the app in a browser):

  • Start tests with MIX_ENV=demo mix test --trace test/integration/smoke_test.exs