I made this as a silly learning project to dive into some of the real-time interestingness of Elixir.<p>It's using Phoenix LiveView, and the whole game state lives inside a GenServer<p>Realtime state is written to ETS and periodically (every 5s) flushed to disk.<p>It's running on fly.io<p>---<p>code lives on github here: <a href="https://github.com/jakedahn/clickthebutton/blob/main/lib/clickthebutton/game_server.ex">https://github.com/jakedahn/clickthebutton/blob/main/lib/cli...</a><p>and <a href="https://github.com/jakedahn/clickthebutton/blob/main/lib/clickthebutton_web/live/counter_live.ex">https://github.com/jakedahn/clickthebutton/blob/main/lib/cli...</a>