This is a weekend project to get familiar with Elixir, Phoenix Framework, and LiveView.
It's a fairly useless app that makes a call every 30 seconds to Christchurch Metro's SIRI API and returns a filtered set of data of bus stops that had a bus leave more than five minutes late from it.
Using concepts such as Elixir GenServers and Phoenix PubSub, it can serve many users concurrently without creating a huge number of requests to Christchurch Metro's API.
See it running: (link on the way)
As this is a learning project, the code is heavily documented and most of the unneeed boilerplate has been removed.
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
mix precommit