Skip to content

Weekend project learning Elixir + Phoenix Framework. Calls the Christchurch Metro SIRI API and presents the data in a Phoenix LiveView.

Notifications You must be signed in to change notification settings

shreyasrama/metro-bus-delays-live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Christchurch Metro Live Bus Delay Dashboard

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.

Local development

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Other useful mix commands

mix precommit

About

Weekend project learning Elixir + Phoenix Framework. Calls the Christchurch Metro SIRI API and presents the data in a Phoenix LiveView.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published