This is a simple URL shortener application that allows users to convert long URLs into shorter, more manageable ones. It's built using Java and Spring Boot, with data persistence handled by MySQL.
- Shorten long URLs into shorter, more user-friendly ones
- Store original and shortened URLs along with creation timestamps
- Retrieve original URLs by providing the corresponding shortened URL
- View creation timestamps for each shortened URL
- Java
- Spring Boot
- MySQL
- Hibernate
- Clone the repository:
git clone https://github.com/your-username/url-shortener.git
- Navigate to the project directory:
cd url-shortener
- Configure your MySQL database connection in
application.properties
- Build the project:
./mvnw clean install
- Run the application:
./mvnw spring-boot:run
- Access the application at
http://localhost:8081
- Enter a long URL in the provided input field and click "Shorten"
- Copy the shortened URL provided
- To redirect to the original URL, visit the shortened URL in your browser
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.