A simple Java GUI application that shortens URLs. This app allows users to input a long URL and generates a shorter, more manageable URL that can be easily shared with others. The application implements a custom URL shortening algorithm and validates the entered URL to ensure that it is a valid URL before attempting to generate a shortened URL. Users can store the shortened URL by providing a user-defined alias or keyword. The original and shortened URLs are stored in a local database file DB.csv.
The project requires Java 20 to run.
Overall, this directory tree gives an overview of the organization and structure of the project's files and directories.
C:\USERS\BLACKROSE\DESKTOP\LINKSQUEEZER
βββ .gitignore
βββ build.xml
βββ DB.csv
βββ manifest.mf
βββ README.md
βββ SRS.md
βββ dist
β βββ DB.csv
β βββ LinkSqueezer.jar
β βββ README.TXT
βββ src
βββ GUI
β βββ AboutFrame.form
β βββ AboutFrame.java
β βββ MainFrame.form
β βββ MainFrame.java
βββ linksqueezer
βββ Link.java
βββ LinkSqueezer.java
βββ LinkStorage.java
βββ Main.java
Here's a brief description of each file :
-
README.md
: This file is typically used as the main documentation file for a GitHub repository. It contains information about the project, its purpose, features, and how to use it. It may also contain instructions for contributing to the project or running it locally. -
SRS.md
: This file is a Software Requirements Specification document. It outlines the functional and non-functional requirements for the project, as well as any constraints or dependencies that need to be considered during development. -
DB.csv
: This file is a database file used by the LinkSqueezer project. It likely contains data related to links that have been saved or compressed using the LinkSqueezer software. -
Main.java
: This file is the main driver class for the LinkSqueezer project. It likely contains themain
method, which is the entry point for the application. It may also contain other methods and classes used to initialize the application and manage user input/output. -
LinkSqueezer.jar
: This file is the executable JAR file for the LinkSqueezer project. It is typically exported from an IDE and can be run on any system with Java installed. It contains all of the compiled Java code necessary to run the application, as well as any dependencies required by the project.
Overall, these files represent the core components of the LinkSqueezer project, including its documentation, requirements, code, and data files.
To install and run the app on your local machine, follow these steps:
- Make sure you are using java 20 (build and tested using this).
- Clone the repository:
git clone https://github.com/hussainashiqktk/linkSqueezer
- Open the project in Netbeans (tested on Apache Netbeans 17).
- Run the
Main.java
file located in thesrc/linksqueezer
directory. - Or you can directly run the jar file named LinkSqueezer.jar in dist directory.
- Enter the long URL in the input field provided.
- Give the alias/name for your reference.
- Click the "Squeeze" button to generate a shortened URL.
- The shortened URL will be displayed in the output field below the input fields. The history is stored in the DB.csv file.
- To copy the shortened URL to clipboard click the button Copy To Clipboard.
Contributions, issues, and feature requests are welcome! Feel free to check out the issues page to see if your suggestion has already been made. If you have found a bug or have a feature request, please [open a new issue][(https://github.com/hussainashiqktk/linkSqueezer/issues/new)
This project is licensed under the MIT license.
Made with β€οΈ by :