This is a simple URL Shortener application built using TypeScript and React. It allows users to shorten long URLs into concise and shareable links using the is.gd PHP API.
- Shorten long URLs into compact links.
- Option to provide custom short URLs.
- Copy shortened links to the clipboard.
- Covert shortened urls to qr code
- Delete previously generated shortened links.
- React
- TypeScript
- PHP
- axios
- Firebase for authentication
To run the application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Japheth-Joepari/shorten.ly.git -
Install the dependencies:
cd shorten.ly npm install -
Configure the is.gd API endpoint in the code:
Open the
context/ShortenContext.tsxfile and locate theshortenfunction. Replace the API endpoint with the appropriate is.gd PHP API endpoint. -
Start the development server:
npm run dev -
Open the application in your browser:
http://localhost:5173
- Enter the original URL that you want to shorten in the input field.
- Optionally, provide a custom short URL.
- Click the "Shorten" button to generate the shortened link.
- The shortened link will be displayed below.
- You can copy the link to the clipboard using the "Copy" button.
- To delete a previously generated link, click the "Delete" button next to it.
Contributions to this project are welcome. If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License.
