Skip to content

shinjukuman/bank-account-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bank-account-demo

Architecture

  • Layered architecture using DDD(Domain-Driven Design)
    • Application layer
    • Domain model layer
    • Infrastructure layer
  • Project layout
    .
    ├─ application
    │  ├─ request
    │  ├─ response
    │  └─ service
    ├─ domain
    │  ├─ aggregate
    │  ├─ entity
    │  ├─ factory
    │  ├─ repository
    │  └─ valueobject
    └─ infrastructure
       ├─ persistence
       └─ sqlite
    

API Endpoint

  • GET /health
  • POST /account/deposit
  • POST /account/withdraw
  • POST /mass/deposit

Req/Res Data

  • Request body ./application/request
  • Response body ./application/response

Web Server

  • Start web server
    go run main.go

Database

  • Schema path ./infrastructure/sqlite
  • Connect database
    sqlite3 ./infrastructure/sqlite/bank.db

Version

  • Language : Go v1.16
  • Web framework : Echo v4.6.1
  • Database : SQLite v3.32.3
  • Database driver : go-sqlite3 v1.14.9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages