Skip to content

avpavlov/short-urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To clone, build and launch

git clone https://github.com/avpavlov/short-urls.git
cd short-urls
sbt "runMain HttpServer localhost:8080 localhost:8080"

Simple form will be available at http://localhost:8080

URLs are stored in external MongoDB instance (I used free sandbox on https://mlab.com/)

Test instance is available at https://shrouded-oasis-50298.herokuapp.com

To shorten URL I use SHA1 hash and iterate over it by taking 8 subsequent chars (0-7, 1-8, 2-9 etc) until I find sequence which is not yet used.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published