Skip to content

A sample project showcasing how to use transaction with clean & readable code

License

Notifications You must be signed in to change notification settings

William9923/clean-transaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clean Hexagonal Architecture SQL Transaction

A sample cli project showcasing how to use transaction with clean & readable code in hexagonal architecture

🚀 Quick start

  1. Clone the repository
git clone git@github.com:William9923/clean-architecture.git
  1. Setup mysql infrastructure (use docker!)
sh ./scripts/mysql/run-local
  1. Import the Postman collection in .api folder

  2. Run the Proof of Concept Code (Transfer from user 1 to user 2 for 20000)

go run cmd/cli/main.go -from 1 -to 2 -amount 20000
  1. To stop the infrastructure
sh ./scripts/mysql/stop-local

❌ Prerequisites

❤️ Support

If you feel that this repo have helped you provide more example on learning software engineering, then it is enough for me! Wanna contribute more? Please ⭐ this repo so other can see it too!

About

A sample project showcasing how to use transaction with clean & readable code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages