Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 526 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 526 Bytes

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