Skip to content

tobixoxo/url-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

url-shortner

url-shortner coding challenge

design -

  • 2 apis

    • create shortlink
    • redirect shortlink
  • create shortlink (url):

    • shorturl = someHash(url)
    • db.save (primaryKey: shorturl, realUrl: url)
    • return shorturl
  • redirect shortlink (shortlink):

    • realurl = db.query(shortlink)
    • return response(realurl)
  • language: python

  • framework: flask

  • dbms: MongoDB (pyMongo)

dbms record:

{          
    longUrl: "www.amazon.com",          
    shortUrl: "s0m3hAsHsTr1Ng"  
}

About

url-shortner coding challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published