A URL Shortener created as a part of the Stord interview process.
The approach taken was to build via Phoenix and LiveView.
- The shortened URL creation workflow and stats pages are LiveViews.
- The redirection and stats CSV downloading are handled via traditional controllers.
URL.STORD-ener.Demo.mp4
To set up your local environment run
bin/setup
To start your Phoenix server:
- Run
mix setup
to install and setup dependencies - Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Tests can be run via mix
with:
mix test
When appropriate, I have tried to put assumptions or decisions in code comments or commits. I also put together some benchmarks and thoughts on scaling.