clean-transaction

module
v0.0.0-...-c1a84d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: MIT

README

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!

Directories

Path Synopsis
cmd
benchmark command
cli command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL