A simple URL shortener built with Node.js.
- Shorten URLs with custom or auto-generated short codes
- Redirect short URLs to original URLs
- Web interface to create and view shortened URLs
- Clone or download the project
- Ensure Node.js is installed
- Run
npm install(though no dependencies, just to be sure) - Run
npm startornode app.js
- Open http://localhost:3002 in your browser
- Enter a URL to shorten
- Optionally provide a custom short code
- Click Shorten
- The shortened URL will appear below
- Click the shortened URL to redirect to the original
app.js: Server codepublic/index.html: Frontendpublic/style.css: Stylesdata/link.json: Storage for URL mappings