The Shorten Web Application allows users to generate shortened URLs for their long URLs. It is a simple and easy-to-use tool built using FetchAPI, HTML, CSS, and JavaScript.
- Generates short URLs for long URLs to make them more manageable and shareable.
- Uses the short.io API service to handle URL shortening and redirection.
- Provides a clean and intuitive user interface for quick URL shortening.
Before getting started, make sure you have the following:
- A domain or subdomain to host the application.
- Registration of your domain/subdomain with short.io. (Completely free of cost)
Note: Preferably use a subdomain so it doesn't take up the whole domain ie. link.example.com instead of example.com
- Fork this repository to your GitHub account.
- Clone the forked repository to your local machine.
- Register your domain/subdomain with short.io to generate a public API key.
- Go to api integrations in short.io and generate a public key.
- Open the
assets/script.js
file in a text editor. - Replace the placeholder API key in the
'authorization'
field with your short.io API key. - Rename the domain
'link.laavesh.xyz'
to your own domain or subdomain in the following files:index.html
assets/script.js
- Deploy the application to your domain or subdomain.
- Visit your domain or subdomain in a web browser.
- Enter a long URL in the input field.
- Click on the "Shorten" button.
- The application will generate a shortened URL using the short.io API and display it to the user.
- Copy the shortened URL and use it wherever you need.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.