Skip to content

mariaines00/urlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlshortener

Description

The challenge is to build a HTTP-based RESTful API for managing Short URLs and redirecting clients similar to bit.ly or goo.gl. Please include a README with documentation on how to build, and run and test the system.

A Short Url:

  1. Has one long url
  2. Permanent; Once created
  3. Is Unique; If a long url is added twice it should result in two different short urls.
  4. Not easily discoverable; incrementing an already existing short url should have a low probability of finding a working short url.

Your solution must support:

  1. Generating a short url from a long url
  2. Redirecting a short url to a long url within 10 ms.
  3. Listing the number of times a short url has been accessed in the last 24 hours, past week and all time.
  4. Persistence (data must survive computer restarts)

Shortcuts

  1. No authentication is required
  2. No html, web UI is required
  3. Transport/Serialization format is your choice, but the solution should be testable via curl
  4. Anything left unspecified is left to your discretion

How to run it locally

  1. have docker and docker-compose installed
  2. clone the repo
  3. navigate to the directory containing the docker-compose.yml file
  4. run docker-compose up -d --build
  5. Go to the browser on http://localhost:3000 to reach the app
  6. OR use postman to reach the endpoints

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published