Skip to content

Instantly share code, notes, and snippets.

@abarre
Last active June 13, 2018 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abarre/2405f1ea4e3a8e03f24b072d12fbc8e7 to your computer and use it in GitHub Desktop.
Save abarre/2405f1ea4e3a8e03f24b072d12fbc8e7 to your computer and use it in GitHub Desktop.
URL Shortener Full stack

URL Minifier

Choose your favorite web technology to develop an URL shortener.

Backend

The backend should be able to perform the following actions :

  • Submit an URL to be shortened and store them in a persistent storage
  • GET on shortened URLS will redirect to the original URL (301 redirection)
  • Get shortened URLs list (this should be protected by a basic auth)
  • Get stats (number of visits) for a shortened URL

The design should follow the REST API principle.

Frontend

The app should have the following pages :

  • a page with a form that take an URL and return a shorten URL
  • an admin page protected by a basic auth that will list shortened URLs and associated targeted links and number of visits.

Restitution

When done, send us a Git repo URL and the URL of the application.

Criteria

You should design this app as you used to do in your daily job. We appreciate :

  • documentation explaining the different technical choices
  • decent errors management
  • good testing coverage (choose tests that are appropriate for the exercise : end to end, unit tests, API tests...).
  • a repo ready to be deployed on Heroku or via Docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment