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.
- 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.
- 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.
-
Clone the repository to your local machine:
git clone https://github.com/gagand29/tiny-url.git
-
Navigate to the project directory:
cd tiny-url
-
Install dependencies:
npm install
-
Start the server:
npm start
-
Open your web browser and go to
http://localhost:3000
to access the URL shortener interface. -
Enter a long URL into the provided input field and click the "Shorten URL" button to generate a shortened URL.
-
Copy the shortened URL and share it with others.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.