The MS-Payments Service is a microservice designed to handle payment transactions. Written in Go, this service utilizes the Gin framework and adheres to the principles of clean architecture.
- Accept and process payment transactions
- Maintain payment history and records
- Support multiple payment methods
git clone https://github.com/promptlabth/ms-payments.git
cd ms-paymentsgo mod tidygo build -o ms-payments./ms-paymentsTo verify the service is running smoothly, navigate to the /health endpoint.
To run unit tests, execute:
go test ./...http://localhost:8080/docs/index.html
entitiesit will be create a entity and struct for the coderepositoriesit will be for manage a database of the struct => select, insert, update, delete etc.usecasesit will contain a business usecase of the repository => before select should do something ? before insert should before do some thing ?controllersit will be for validate a data and prepare a data before send a data to business usecaseroutesis for define a routing url
LOCAL state : state Local Development
DEV state: state Dev on cloud Dev Mode [EX: Test on Cloud run]
STATING state : state same in prod mode but not release [Ex: Test Delopyment but not release]
PROD state: State Release on Production