Skip to content

Commit ccb2b56

Browse files
committed
Merge branch 'master' of github.com:oatpp/example-microservices
2 parents 141d3b4 + 7082de9 commit ccb2b56

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

README.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,49 @@
1-
# example-microservices
1+
# example-microservices
2+
3+
This is an example project on how to build microservices with Oat++ Web Framework, and how to utilize the [Monolithization](https://oatpp.io/docs/monolithization/) feature.
4+
5+
See more:
6+
7+
- [Oat++ Website](https://oatpp.io/)
8+
- [Oat++ Github Repository](https://github.com/oatpp/oatpp)
9+
- [Monolithization](https://oatpp.io/docs/monolithization/)
10+
11+
## Note
12+
13+
For more information about this example, see the [Monolithization](https://oatpp.io/docs/monolithization/) article.
14+
15+
## Inside This Repository
16+
17+
```
18+
|- user-service/ // User-Service source code
19+
|- book-service/ // Book-Service source code
20+
|- facade/ // Facade source code
21+
|- monolith/all-services/ // Monolithic config to build all services as a Monolith
22+
|- build_all.sh // Utility script. Build all services
23+
|- run_all_microservices.sh // Utility script. Run all services as separate applications
24+
```
25+
26+
## Build And Run
27+
28+
### Pre Requirements
29+
30+
- Install the [oatpp](https://github.com/oatpp/oatpp)
31+
- Install the [oatpp-swagger](https://github.com/oatpp/oatpp-swagger)
32+
33+
### Build all
34+
35+
```bash
36+
$ ./build_all.sh
37+
```
38+
39+
### Run as separate applications
40+
41+
```bash
42+
$ ./run_all_microservices.sh
43+
```
44+
45+
### Run as monolith
46+
47+
```bash
48+
$ ./monolith/all-services/build/all-services-exe
49+
```

0 commit comments

Comments
 (0)