Skip to content
forked from jfeng45/order

A Go Event Driven Microservice for Order Service

License

Notifications You must be signed in to change notification settings

lingling1420q/order

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Event Driven Go Order Microservice

Other language:

This is a project to show case how to do event driven Microservice in Go. It includes two Microservices, one is "Payment" 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/order

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 "Payment" Service

"Payment"

License

MIT License

About

A Go Event Driven Microservice for Order Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%