Skip to content

This GitHub repository contains the source code for a URL shortener tool developed using NodeJS. The tool efficiently converts long URLs into a shortened version for easy sharing, and serves as a useful base code that can be built upon by other developers.

ravitejalakkoju/minify-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minify-URL

Figma Design Link: Figma Design Screens
Node.js Application

This repository contains the source code for a Node.js application.

Installation

To install this application, follow these steps:

Clone the repository to your local machine.
Run *npm install* to install the required dependencies.
Usage

To start the application, run npm start from the command line. The application will start and can be accessed by visiting http://localhost:3000 in your web browser.

A sample client side code is in the following repository

ravitejalakkoju/minify-url-client

API Endpoints

The base URL for the API is [https://mini7fy.herokuapp.com/api/url].

Endpoints

This API provides the following endpoints:

POST /:code: [Redirects to the long url]

POST /shorten: [Create a shortcode for a long URL.]

Request Payload:

{
    "url": "https://www.example.com/this-is-a-long-url-that-needs-to-be-shortened"
}
Request and Response Formats

This API accepts and returns data in JSON format. Requests to the /shorten endpoint should include a Content-Type header with a value of application/json, and responses will include a Content-Type header with the same value.

About

This GitHub repository contains the source code for a URL shortener tool developed using NodeJS. The tool efficiently converts long URLs into a shortened version for easy sharing, and serves as a useful base code that can be built upon by other developers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published