https://github.com/developerzeeshu/url-shortener
A simple URL Shortener built using Node.js with a basic HTTP server – no frameworks! Users can shorten long URLs, see the list of generated short URLs on the page, and click to visit the original site. Clean, minimal, and beginner-friendly.
https://github.com/developerzeeshu/url-shortener
backend css3 html5 javascript nodejs server url-shortener
Last synced: about 2 months ago
JSON representation
A simple URL Shortener built using Node.js with a basic HTTP server – no frameworks! Users can shorten long URLs, see the list of generated short URLs on the page, and click to visit the original site. Clean, minimal, and beginner-friendly.
- Host: GitHub
- URL: https://github.com/developerzeeshu/url-shortener
- Owner: DeveloperZeeshu
- Created: 2025-06-28T16:07:12.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-06-28T16:19:38.000Z (11 months ago)
- Last Synced: 2025-06-28T17:27:19.857Z (11 months ago)
- Topics: backend, css3, html5, javascript, nodejs, server, url-shortener
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔗 Express URL Shortener with EJS, Routes & Controllers, MongoDB
A full-stack URL shortener built with **Node.js**, **Express.js**, and **MongoDB**.
Users can shorten long URLs by entering a custom or random short code. The shortened links are stored in a MongoDB collection and displayed on the home page using **EJS templates**.
---
## 🚀 Features
- Built with **Express.js** using clean routes/controllers
- View engine: **EJS**
- Stores links in **MongoDB**
- User inputs:
- Long URL
- Custom short code (e.g., `yt` → `https://youtube.com`)
- Homepage shows all shortened links
- Clicking a short link redirects to the original
- Custom 404 page for invalid short codes
---
## ▶️ Getting Started
### 1. Clone the repository
```bash
git clone https://github.com/DeveloperZeeshu/URL-Shortener.git
cd url-shortener-node
```
## 🙋♂️ Author
Made with ❤️ by Jeesan Abbas