https://github.com/aurasphere/url-shortener
Simple URL shortening service
https://github.com/aurasphere/url-shortener
Last synced: 10 months ago
JSON representation
Simple URL shortening service
- Host: GitHub
- URL: https://github.com/aurasphere/url-shortener
- Owner: aurasphere
- License: mit
- Created: 2025-05-17T12:20:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-17T12:21:45.000Z (about 1 year ago)
- Last Synced: 2025-09-07T23:53:28.415Z (10 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# URL Shortener
A simple URL shortening service built with Spring Boot. This application allows users to convert long URLs into shorter, more manageable links.
## Features
- URL shortening functionality
- RESTful API endpoints
- H2 in-memory database
## Technologies Used
- Java 17
- Spring Boot 3.2.3
- Spring Data JPA
- H2 Database
- Lombok
- Maven
## Prerequisites
- JDK 17 or higher
- Maven 3.6 or higher
## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/aurasphere/url-shortener.git
cd url-shortener
```
2. Build the project:
```bash
mvn clean install
```
3. Run the application:
```bash
mvn spring-boot:run
```
The application will start on `http://localhost:8080`
## API Endpoints
The service provides the following REST endpoints:
- `POST /api/urls` - Creates a shortened URL
- `GET /api/urls/{shortCode}` - Redirects to the original URL
## License
This project is licensed under the MIT License - see the LICENSE file for details.