tmr08c / url_stordener

A URL Shortener created as a part of the Stord interview process.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Stord-ener

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.

Demo

URL.STORD-ener.Demo.mp4

Development

Set up

To set up your local environment run

bin/setup

Running a server

To start your Phoenix server:

  • 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.

Testing

Tests can be run via mix with:

mix test

Additional thoughts

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.

About

A URL Shortener created as a part of the Stord interview process.


Languages

Language:Elixir 94.1%Language:JavaScript 3.1%Language:HTML 1.7%Language:Shell 0.9%Language:CSS 0.2%