https://github.com/gagand29/tiny-url
TinyURL is a lightweight URL shortener built with Node.js and Express. It simplifies long URLs into short, shareable links. Utilizing server-side routing and form handling, TinyURL offers an efficient solution for generating and managing shortened URLs.
https://github.com/gagand29/tiny-url
body-parser continuous-deployment continuous-integration css express-js javascript node-js npm-package server-side-routing-form-handling url-shortener web-development
Last synced: 2 months ago
JSON representation
TinyURL is a lightweight URL shortener built with Node.js and Express. It simplifies long URLs into short, shareable links. Utilizing server-side routing and form handling, TinyURL offers an efficient solution for generating and managing shortened URLs.
- Host: GitHub
- URL: https://github.com/gagand29/tiny-url
- Owner: gagand29
- Created: 2024-03-28T06:34:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T07:41:56.000Z (about 2 years ago)
- Last Synced: 2025-06-29T09:40:54.189Z (12 months ago)
- Topics: body-parser, continuous-deployment, continuous-integration, css, express-js, javascript, node-js, npm-package, server-side-routing-form-handling, url-shortener, web-development
- Language: JavaScript
- Homepage:
- Size: 716 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TinyURL - URL Shortener
TinyURL is a simple URL shortening service built using Node.js and Express. It allows users to shorten long URLs into more manageable and shareable links.
## Features
- **URL Shortening**: Convert long URLs into short, easy-to-share links.
- **Custom Short Codes**: Generates unique short codes for each shortened URL.
- **Redirection**: Redirects users from shortened URLs to the original long URLs.
## Technologies Used
- **Node.js**: A JavaScript runtime for building server-side applications.
- **Express**: A web application framework for Node.js, used for building the server and handling HTTP requests.
- **uuid**: A package for generating universally unique identifiers (UUIDs), used for creating unique short codes.
- **body-parser**: Middleware for parsing request bodies in Express applications.
- **morgan**: Middleware for logging HTTP requests in Express applications.
## Installation
1. Clone the repository to your local machine:
```bash
git clone https://github.com/gagand29/tiny-url.git
```
2. Navigate to the project directory:
```bash
cd tiny-url
```
3. Install dependencies:
```bash
npm install
```
## Usage
1. Start the server:
```bash
npm start
```
2. Open your web browser and go to `http://localhost:3000` to access the URL shortener interface.
3. Enter a long URL into the provided input field and click the "Shorten URL" button to generate a shortened URL.
4. Copy the shortened URL and share it with others.
## Contributing
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.