An API to shrink your links and makes your url intact.
POST /shrink
Parameter | Type | Description |
---|---|---|
body |
json |
{url: "your url here" } |
GET /s/${shortUrl}
Parameter | Type | Description |
---|---|---|
shortUrl |
string |
shortUrl to convert to absolute |
You need to install mongoDB driver locally or add .env file and credentials of db
USER=username
PASSWORD=password
DATABASE=database name
Clone the project
git clone https://github.com/prajyu/linkshrink.git
Go to the project directory
cd linkshrink
Install dependencies
npm install
Start the server
npm run start