How lucascouto91/credit-application-system works
Project type and purpose
• This is a monolithic backend service written in Kotlin using Spring Boot.
• Its purpose is to expose a REST API for a credit-application system: allowing user registration, profile updates, account deletion, credit inquiry (for customers), and credit approval (for admins).
• It ships with in-memory H2 database, JWT-based security filters, Swagger documentation, and can be run via Docker.
File structure
• Top‐level artifacts:
• build.gradle, gradlew scripts → build tool (Gradle)
• Dockerfile → containerization
• src/main/kotlin/me/dio/credit/application/system → application entrypoint, configuration, controllers, services, repositories, DTOs, entities, security filters
• src/main/resources/db/migration → Flyway (or Liquibase) migrations for DB schema
• src/main/resources/application.yml → Spring Boot configuration
• Classic layered organization:
• controller (REST layer)
• service (business logic)
• repository (data access)
• dto/entity (data models)
• security (JWT filters, auth & authorization config)
• configuration (Swagger, Security)
README for additional insights
• Technology stack: Kotlin, Spring Boot, Swagger, H2 Database, JWT, Docker
• Functional requirements (end-user and admin flows)
• How to run (Docker, IDE) and API documentation endpoint
Detail
• Docker container boundary around the Spring Boot application.
• Port mappings (8080 → container port 8080), and highlight endpoints like /login, /customers, /credits.
• Call out the Flyway migration scripts feeding the H2 schema.
• Swagger‐ui path (/swagger-ui.html) and H2 console (/h2-console).