An open API service indexing awesome lists of open source software.

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.

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