/url-shorten

A micro application for Url shorten built with Nest Framework its also has Postgres and Docker.

Primary LanguageTypeScript

URL Shorten

Description

A micro application for Url shorten built with Nest Framework its also has Postgres and Docker.

Installation

$ npm install

Running the app

# development mode
$ docker-compose up --build

Request

Generate Short URL

POST /url-shorten
Host: localhost:3000
Accept: application/json
Content-Type: application/json
Request Body
{
	"longUrl": "[AnyUrlWhichYouWantToGetShortUrl]"
}

Get Detail By Short Code

POST /url-shorten/{shortCode}
Host: localhost:3000
Accept: application/json