Skip to content

thiagodebastos/shorturl

Repository files navigation

URL Shortener Microservice

Tech stack

Database | PostgreSQL + Knex query builder Server | NodeJS + Express URL Encoding | Base62 encoding of DB id

Creation Example

POST [project_url]/api/shorturl/new - body (urlencoded) : url=https://github.com/thiagodebastos/shorturl

Usage

[this_project_url]/api/shorturl/n*

* decoding n with base62 results in 1. Lookup in DB WHERE id = 1 will give the result.

Will redirect to

https://github.com/thiagodebastos/shorturl

Releases

No releases published

Packages

No packages published