jfeng45 / payment

A Go Payment Event Driven Microservice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Go Payment Event Driven Microservice

License:MIT License


Languages

Language:Go 100.0%