Skip to content

michelececcacci/url-shortener

Repository files navigation

url-shortener

codecov Django CI CodeFactor

Url shortener that uses a randomized algorithm and guarantees up to 2 billion unique ids based, with a fixed 6-character url short id. Built using Django and Postgresql.

The project deployed on Heroku, but not anymore since Heroku has cut free hosting.

Added sentry support to track failures both in production and in development environments.

API ROUTES (must be added to base url):

/<short_link>

Simulates a click, incrementing the click count by 1, and returns the long link, short link and addition date of the link.

/api/

Retrieves all the links and all their informations

/api/add/

Allows to add a custom url (using the long field) and shortens it

/api/infos/<short_link>

Grabs infos about corresponding shortened link, but does not increment the click count.

About

url shortener backend built with django rest framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published