- 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
- GET
/health
- POST
/account/deposit
- POST
/account/withdraw
- POST
/mass/deposit
- Request body
./application/request
- Response body
./application/response
- Start web server
go run main.go
- Schema path
./infrastructure/sqlite
- Connect database
sqlite3 ./infrastructure/sqlite/bank.db
- Language :
Go
v1.16 - Web framework :
Echo
v4.6.1 - Database :
SQLite
v3.32.3 - Database driver :
go-sqlite3
v1.14.9