Clean Monolith Shop
Source code for https://threedots.tech/post/microservices-or-monolith-its-detail/ article.
This shop can work both as monolith and microservices. More info you will find in the article.
This repository contains only REST API.
You need Docker and docker-compose installed.
Everything is running in Docker container, so you don't need golang either any other lib.
It will build Docker image and run monolith and microservices version.
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
First of all you must run services
Then you can run all tests by using in another terminal:
If you want to test only monolith version: