/payment

A Go Payment Event Driven Microservice

Primary LanguageGoMIT LicenseMIT

A Event Driven Go Payment Microservice

Other language:

This is a project to show case how to do event driven Microservice in Go. It includes two Microservices, one is "Order" service, the other is this one. The Order service calls the Payment service to make a payment. You need to run both projects together to make it work.

Getting Started

Installation

Download Code

go get github.com/jfeng45/payment

Set Up MySQL

Install MySQL
run SQL script in script folder to create database and table

Install NATS

Install NATS

Start Application

Start MySQL Server

cd [MySQLroot]/bin
mysqld

Run main

cd [rootOfProject]/cmd
go run main.go

Run "Order" Service

"Order"

License

MIT License