Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener & Analytics API

A production-ready URL Shortener application built using Spring Boot that allows users to shorten long URLs, track click analytics, and manage links through a responsive frontend interface.

Live Demo

https://url-shortener-55d8.onrender.com


Features

  • Shorten long URLs instantly
  • Redirect users using generated short links
  • Track URL click analytics
  • RESTful API architecture
  • Responsive frontend using HTML, CSS, and JavaScript
  • Cloud deployment using Render
  • Spring Data JPA integration
  • H2 database support

Tech Stack

Backend

  • Java 17
  • Spring Boot 3
  • Spring Data JPA
  • Maven

Frontend

  • HTML5
  • CSS3
  • JavaScript

Database

  • H2 Database

Deployment

  • Render

API Endpoints

Health Check

GET

/api/health

Create Short URL

POST

/api/shorten

Request Body:

{
  "originalUrl": "https://example.com"
}

Get URL Statistics

GET

/api/stats/{shortCode}

Get All URLs

GET

/api/urls

Project Structure

src
├── main
│   ├── java
│   │   ├── controller
│   │   ├── service
│   │   ├── repository
│   │   ├── entity
│   │   └── dto
│   │
│   └── resources
│       ├── static
│       │   ├── index.html
│       │   ├── style.css
│       │   └── app.js
│       └── application.properties

Learning Outcomes

  • REST API Development
  • Spring Boot Application Design
  • Frontend and Backend Integration
  • Database Management
  • Cloud Deployment
  • Git & GitHub Workflow

Author

Dinesh Raj S

GitHub: https://github.com/DineshRaj74

Portfolio: https://dineshraj74.github.io/Portfolio-/

LinkedIn: www.linkedin.com/in/dineshra-j07042005


⭐ If you found this project useful, consider giving it a star.

About

URL Shortener & Analytics API A full-stack URL Shortener application built with Java Spring Boot, featuring URL shortening, click tracking analytics, REST APIs, responsive frontend UI, and cloud deployment on Render. Users can generate short URLs, track link performance, and access analytics through a modern web interface.Shorten URLs, track click

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages