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.
- Host: GitHub
- URL: https://github.com/arvindkumarbadwal/url-shorten
- Owner: arvindkumarbadwal
- Created: 2022-07-19T13:40:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T12:44:59.000Z (almost 4 years ago)
- Last Synced: 2026-04-29T06:37:59.675Z (about 2 months ago)
- Topics: nestjs, shorten-urls
- Language: TypeScript
- Homepage:
- Size: 186 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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