Skip to content

samshete05/URL-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

Overview

This project implements a URL Shortener API that allows users to give their long URL and receive a shorter URL. Each shortened URL can be accessed, and the API tracks how many times each short link is clicked.

Technologies

  • Node.js: JavaScript runtime for server-side programming.
  • Express.js: Web application framework for Node.js.
  • MongoDB: NoSQL database for storing URLs.
  • nanoid: A tiny, secure, URL-friendly unique ID generator.

About this Application

  • Shorten long URLs using unique IDs generated by nanoid.
  • Redirect original URLs from short URLs.
  • Track the number of clicks on each short link.
  • Store URLs in a MongoDB database.

Example

Request

{
    "url": "https://www.example.com/some/long/url"
}
### Response

{
    "shorturl": "http://localhost:8000/abc123",
    "clicksHistory": [],
    "totalclicks": 0
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published