How sridharpasupuleti/url-shortener works
This repository contains a React URL-shortening interface and a Java backend. The visible user workflow is to enter a long URL and optional alias, submit it through the frontend service, and display or copy the returned short URL. Backend implementation details and README capability claims were not provided, so backend components are identified from the source tree; their internal relationships are not asserted.
Main entry points: UrlForm.js URL Form · urlService.js URL API Client · App.js React App · reportWebVitals.js Web Vitals
Components 18
Frontend
- React App
url-shortener-frontend/src/App.js - URL Form
url-shortener-frontend/src/components/UrlForm.js - URL API Client
url-shortener-frontend/src/services/urlService.js - Web Vitals
url-shortener-frontend/src/reportWebVitals.js
Backend
- Backend URL API
url-shortener-backend/src/main/java/com/example/url_shortener/controller - URL Service
url-shortener-backend/src/main/java/com/example/url_shortener/service/UrlService.java - URL Service Logic
url-shortener-backend/src/main/java/com/example/url_shortener/serviceimplementation/UrlServiceImpl.java - Shortening Rate Limit
url-shortener-backend/src/main/java/com/example/url_shortener/service/UrlShorteningRateLimiter.java - Base62 Encoding
url-shortener-backend/src/main/java/com/example/url_shortener/serviceimplementation/Base62.java
URL Domain
- URL Record
url-shortener-backend/src/main/java/com/example/url_shortener/entities/Urls.java - URL Request DTO
url-shortener-backend/src/main/java/com/example/url_shortener/dtos/Urldto.java - URL Response DTO
url-shortener-backend/src/main/java/com/example/url_shortener/dtos/UrlResponseDTO.java - URL Error Types
url-shortener-backend/src/main/java/com/example/url_shortener/exception
Infrastructure
- URL Repository
url-shortener-backend/src/main/java/com/example/url_shortener/repository/UrlRepository.java - Redis Configuration
url-shortener-backend/src/main/java/com/example/url_shortener/config/RedisConfig.java
Other components
- URL User
- Redis
- Browser
Connections 7
- URL User → URL Form: enters URL
url-shortener-frontend/src/components/UrlForm.js - React App → URL Form: renders
url-shortener-frontend/src/App.js - URL Form → URL API Client: requests shortening
url-shortener-frontend/src/components/UrlForm.js - URL API Client → Backend URL API: POSTs URL
url-shortener-frontend/src/services/urlService.js - URL Form → URL User: shows result
url-shortener-frontend/src/components/UrlForm.js - URL Form → Browser: copies result
url-shortener-frontend/src/components/UrlForm.js - Web Vitals → Browser: collects metrics
url-shortener-frontend/src/reportWebVitals.js