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-payments
go mod tidy
go build -o ms-payments
./ms-payments
To verify the service is running smoothly, navigate to the /health endpoint.
To run unit tests, execute:
go test ./...
http://localhost:8080/docs/index.html
entities
it will be create a entity and struct for the coderepositories
it will be for manage a database of the struct => select, insert, update, delete etc.usecases
it will contain a business usecase of the repository => before select should do something ? before insert should before do some thing ?controllers
it will be for validate a data and prepare a data before send a data to business usecaseroutes
is 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