- Notifications
You must be signed in to change notification settings - Fork51
Source code forhttps://threedots.tech/post/microservices-or-monolith-its-detail/ article.
ThreeDotsLabs/monolith-microservice-shop
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Source code forhttps://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 needDocker anddocker-compose installed.
Everything is running in Docker container, so you don't need golangeither any other lib.
Just run
make upIt will build Docker image and run monolith and microservices version.
Monolith:http://localhost:8090/
Orders microservice:http://localhost:8070/
Shop microservice:http://localhost:8071/
Payments microservice: no public API (you can export ports indocker-compose.yml if you need)
For available methods, please check interfaces layer in source code and teststests/acceptance_test.go.
First of all you must run services
make upThen you can run all tests by using in another terminal:
make docker-testIf you want to test only monolith version:
make docker-test-monolithor microservices:
make docker-test-microservicesAbout
Source code forhttps://threedots.tech/post/microservices-or-monolith-its-detail/ article.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.