How myeonggeuncho/smartpay works
Project type and purpose
• Smartpay is a full‑stack payment and card‑recommendation platform.
• The backend is a Spring Boot monolith providing REST and WebSocket APIs, security (JWT + OAuth2), AI integration (OpenAI/ChatGPT), SMS notifications, and persistence.
• The frontend (separate repo) is a React app that interacts via HTTP and WebSockets.
• There’s also an external “card company” server for payment‑gateway validation.
File structure
• Top‑level: Gradle build scripts, a single Spring Boot application (SmartpayApplication.java), config, controller, service, repository, entity, security, websocket.
• Layers follow classical MVC + service + repository + entity architecture.
• Spring Security is configured for JWT and OAuth2 (Kakao).
• Integration modules for Redis (caching or session store), ChatGPT (WebClient), CoolSMS, and WebSocket.
• Static resources under src/main/resources/static and Thymeleaf templates under templates.
• Tests mirror production packages.
README for additional insights
• Infra uses Docker on AWS/Ubuntu with MySQL and Redis.
• Payment flow uses WebSockets for buyer‑seller real‑time interaction.
Be detailed and capture essential elements
• Don’t just group as “backend”—show its major internal modules and their interactions.
• Redis cache for session or rate‑limiting next to the DB.
• OAuth2 handshake as part of the security layer.