This simple application shortens a given long URL, providing you with a short link. Redirects are established between the shortened link and the provided URL.
POST /api/v1/links
{
"url": "https://bardiaramez.net"
}
{
"shortUrl": "URL"
}
- 400 Bad Request: Invalid URL format.
- 500 Internal Server Error: An error occurred during the shortening process.
- Clone the project to your local machine.
- Run the npm install command in the terminal to install the required dependencies.
- Use the npm start command to start the application.