How lastcoderboy/finice works
FinIce is a microservices banking backend. A client request enters through the JWT-validating gateway, then reaches authentication, account, or transaction APIs; transfers coordinate account holds/debits/credits and persist outcomes, while authentication supports verification and token lifecycle. The README documents compensation and external-payment flows that the sampled transaction implementation does not expose, so those relationships are shown as unverified. The graph emphasizes documented capabilities and sampled modules; unsampled implementation details are represented only by exact directories.
Main entry points: GatewayConfig.java API gateway · TransactionServiceImpl.java Transfer orchestration · AuthenticationServiceImpl.java Authentication flow · AuthenticationController.java Auth endpoints
Components 21
API edge
- API gateway
api-gateway/src/main/java/com/jk/finice/apigateway/config/GatewayConfig.java - JWT filter
api-gateway/src/main/java/com/jk/finice/apigateway/security/JwtAuthenticationFilter.java
Identity and access
- Auth endpoints
auth-service/src/main/java/com/jk/finice/authservice/controller/AuthenticationController.java - Authentication flow
auth-service/src/main/java/com/jk/finice/authservice/service/impl/AuthenticationServiceImpl.java - User accounts
auth-service/src/main/java/com/jk/finice/authservice/entity/User.java - Refresh and revoke
auth-service/src/main/java/com/jk/finice/authservice/service/impl/RefreshTokenServiceImpl.java - Email verification
auth-service/src/main/java/com/jk/finice/authservice/service/email/EmailService.java
Accounts and money movement
- Account endpoints
account-service/src/main/java/com/jk/finice/accountservice/controller/AccountController.java - Account operations
account-service/src/main/java/com/jk/finice/accountservice/service/impl/AccountServiceImpl.java - Account balances
account-service/src/main/java/com/jk/finice/accountservice/entity/Account.java - Transaction endpoints
transaction-service/src/main/java/com/jk/finice/transactionservice/controller/TransactionController.java - Transfer orchestration
transaction-service/src/main/java/com/jk/finice/transactionservice/service/impl/TransactionServiceImpl.java - Idempotent persistence
transaction-service/src/main/java/com/jk/finice/transactionservice/service/persistence/TransactionPersistenceService.java - Transaction records
transaction-service/src/main/java/com/jk/finice/transactionservice/entity/Transaction.java - IBAN validation
transaction-service/src/main/java/com/jk/finice/transactionservice/service/component/IbanValidator.java - External payment rail
transaction-service/src/main/java/com/jk/finice/transactionservice/externalGateway/ExternalPaymentGateway.java
Shared platform
- Service discovery
eureka-server/src/main/java/com/jk/finice/eurekaserver/EurekaServerApplication.java - Shared contracts
common-library/src/main/java/com/jk/finice/commonlibrary/dto/ApiResponse.java - Redis revocation
auth-service/src/main/java/com/jk/finice/authservice/config/redis/RedisService.java
Other components
- Banking client
- Mail provider
Connections 23
- Banking client → API gateway: sends requests
README.md - API gateway → JWT filter: filters requests
README.md - API gateway → Auth endpoints: routes auth
README.md - API gateway → Account endpoints: routes accounts
README.md - API gateway → Transaction endpoints: routes transfers
README.md - Auth endpoints → Authentication flow: delegates to
- Authentication flow → User accounts: manages users
auth-service/src/main/java/com/jk/finice/authservice/service/impl/AuthenticationServiceImpl.java - Authentication flow → Refresh and revoke: rotates tokens
- Authentication flow → Email verification: starts verification
auth-service/src/main/java/com/jk/finice/authservice/service/impl/AuthenticationServiceImpl.java - Email verification → Mail provider: sends email
auth-service/src/main/java/com/jk/finice/authservice/service/email/EmailService.java - Account endpoints → Account operations: delegates to
account-service/src/main/java/com/jk/finice/accountservice/controller/AccountController.java - Account operations → Account balances: updates balances
account-service/src/main/java/com/jk/finice/accountservice/service/impl/AccountServiceImpl.java - Transaction endpoints → Transfer orchestration: delegates to
- Transfer orchestration → Idempotent persistence: persists idempotently
README.md - Idempotent persistence → Transaction records: saves records
transaction-service/src/main/java/com/jk/finice/transactionservice/service/persistence/TransactionPersistenceService.java - Transfer orchestration → Account operations: calls internal APIs
README.md - Transfer orchestration → IBAN validation: validates IBAN
transaction-service/src/main/java/com/jk/finice/transactionservice/service/impl/TransactionServiceImpl.java - Transfer orchestration → External payment rail: submits payment
README.md - Refresh and revoke → Redis revocation: blacklists tokens
README.md - API gateway → Service discovery: discovers services
README.md - Auth endpoints → Shared contracts: uses response contract
auth-service/src/main/java/com/jk/finice/authservice/controller/AuthenticationController.java - Account endpoints → Shared contracts: uses response contract
account-service/src/main/java/com/jk/finice/accountservice/controller/AccountController.java - Transfer orchestration → Shared contracts: uses response contract