Skip to content

adigogetit/Url-Shortner-Mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

A simple URL shortener built with Node.js.

Features

  • Shorten URLs with custom or auto-generated short codes
  • Redirect short URLs to original URLs
  • Web interface to create and view shortened URLs

Installation

  1. Clone or download the project
  2. Ensure Node.js is installed
  3. Run npm install (though no dependencies, just to be sure)
  4. Run npm start or node app.js

Usage

  1. Open http://localhost:3002 in your browser
  2. Enter a URL to shorten
  3. Optionally provide a custom short code
  4. Click Shorten
  5. The shortened URL will appear below
  6. Click the shortened URL to redirect to the original

Files

  • app.js: Server code
  • public/index.html: Frontend
  • public/style.css: Styles
  • data/link.json: Storage for URL mappings

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors