Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ThreeDotsLabs/monolith-microservice-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Prerequisites

You needDocker anddocker-compose installed.

Everything is running in Docker container, so you don't need golangeither 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 indocker-compose.yml if you need)

For available methods, please check interfaces layer in source code and teststests/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

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp