An idle clicker game base on the idea of slow play.
Requirements:
- Need elixir installed locally
- Need docker and docker-compose installed locally
Phoenix Setup:
- Start the postgres and adminer container:
$ docker-compose up -f docker-compose-dev.yml -d up
- Install dependencies:
$ mix deps.get
- Init db:
$ mix ecto.setup
- Reset db as needed:
$ mix ecto.reset
- Start up server (
localhost:4000
) with repl$ iex -S mix phx.server
JS + CSS Setup:
- Go to frontend assets folder:
$ cd priv/src
- Build js and css assets:
$ npm run build
- Init hot js reloader:
$ npm run dev-js