How pradeep-katkam/customerservice works
This Spring Boot service exposes customer-account operations plus ride-location discovery: clients create, find, or delete customers, search for drop-off locations, and submit pickup/destination coordinates for a route lookup. The controller delegates these operations to CustomerService, which persists customer records and calls LocationIQ for search and directions. Booking-related entities exist, but the sampled runtime code does not implement a booking workflow. Repository wiring beyond the sampled customer operations is uncertain, so no coordinate-store flow is shown.
Main entry points: CustomerService.java Customer service · CustomerController.java Customer controller · CustomerRepositor.java Customer repository · CustomerServiceApplication.java HTTP client
Components 10
Customer API
- Customer controller
src/main/java/com/alpha/CustomerService/Controller/CustomerController.java - Customer service
src/main/java/com/alpha/CustomerService/Service/CustomerService.java - Request and response DTOs
src/main/java/com/alpha/CustomerService/Dto - Exception handler
src/main/java/com/alpha/CustomerService/Exception/GlobalExceptionHandler.java
Ride discovery
- LocationIQ
- HTTP client
src/main/java/com/alpha/CustomerService/CustomerServiceApplication.java
Customer persistence
- Customer repository
src/main/java/com/alpha/CustomerService/Repository/CustomerRepositor.java - Customer database
- Customer and ride entities
src/main/java/com/alpha/CustomerService/Entity
Other components
- API client
Connections 9
- API client → Customer controller: sends requests
- Customer controller → Customer service: delegates
- Customer controller → Request and response DTOs: accepts and returns
- Customer service → Customer repository: saves and finds
- Customer repository → Customer database: reads and writes
- Customer repository → Customer and ride entities: persists Customer
- Customer service → HTTP client: requests locations
- HTTP client → LocationIQ: calls search and directions
- Customer service → Exception handler: throws handled errors