How pierrick74/carflow-user-service works
Project type and purpose
• This is a single-purpose backend microservice—CarFlow User Service—built with Spring Boot. It handles user registration, authentication, profile CRUD and JWT token management as part of a larger CarFlow ecosystem.
• It is not a full-stack app; it is an identity/auth service that likely communicates with other CarFlow services (e.g., vehicle management, billing).
File structure
• Top-level: pom.xml, mvnw scripts, .gitignore.
• src/main/java/com/PulseLabs/carflow_user_service:
• web/controller: UserController (REST endpoints).
• services: UserService, LicenseService (business logic, external‐service calls).
• db: UserRepository (JPA repository).
• model: User, UserDTO.
• Error: custom exceptions + ErrorHandler (global exception mapping).
• CarflowUserServiceApplication.java (Spring Boot bootstrap).
• src/main/resources: application.properties (DB URL, JWT secrets, Spring Security settings).
• src/test: basic smoke test.
README
• Core responsibilities: register/login, profile management, JWT issuance & validation.
• Tech stack: Java 21+, Spring Boot 3.5.7, Spring Security, JPA (MySQL/PostgreSQL), JJWT.
• Main REST endpoints listed.
• Mentions external communications (to-be-documented)—you already see a LicenseService component.
Detail and granularity
• Flows: “Controller → Service (validate credentials) → Security Component (JWT creation) → Response”.