A simple URL shortener built with Spring Boot and MongoDB (using the MongoDB Java driver).
- Shorten long URLs to short codes
- Store and retrieve URLs from MongoDB
- Track access count for each short URL
- Java 17+
- Maven
- MongoDB running locally on
mongodb://localhost:27017
- Clone the repository: git clone https://github.com/CoderRamya/URLShortening.git cd urlshortener
- Build the project: mvn clean install
- Run Unit Tests mvn test
- Run the application: mvn spring-boot:run
Project URL: https://roadmap.sh/projects/url-shortening-service