Skip to content

Accompanying code for my series on golang monolith to microservice

Notifications You must be signed in to change notification settings

AkhilSharma90/monolith-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monolith to Microservice

Prerequisites

You need Docker and docker-compose installed.

Everything is running in Docker container, so you don't need golang either any other lib.

Running

Just run

make up

It will build Docker image and run monolith and microservices version.

Services addresses

Monolith: http://localhost:8090/


Orders microservice: http://localhost:8070/

Shop microservice: http://localhost:8071/

Payments microservice: no public API (you can export ports in docker-compose.yml if you need)

For available methods, please check interfaces layer in source code and tests tests/acceptance_test.go.

Running tests

First of all you must run services

make up

Then you can run all tests by using in another terminal:

make docker-test

If you want to test only monolith version:

make docker-test-monolith

or microservices:

make docker-test-microservices

About

Accompanying code for my series on golang monolith to microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages