An open API service indexing awesome lists of open source software.

https://github.com/arvindkumarbadwal/url-shorten

A micro application for Url shorten built with Nest Framework its also has Postgres and Docker.
https://github.com/arvindkumarbadwal/url-shorten

nestjs shorten-urls

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# URL Shorten

## Description

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

## Installation

```bash
$ npm install
```

## Running the app

```bash
# 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