Skip to content

vldkorin/boilerplate-urlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener API

This is a simple URL shortener API built using Express, MongoDB, and DNS lookup. It allows you to shorten long URLs and retrieve the original URL using a shortened version.

Features

  1. POST /api/shorturl — Accepts a URL and returns a shortened URL.
  2. GET /api/shorturl/:shortUrl — Redirects to the original URL using the shortened URL.

Requirements

  • Node.js
  • MongoDB (for storing original and shortened URLs)

Installation

1. Clone this repository

git clone https://github.com/your-username/url-shortener.git
cd url-shortener

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 18