You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- I have decided to use **ResponseEntity** in **Controller** class. [ReadMore](https://www.baeldung.com/spring-response-entity).
79
79
80
80
> While **ResponseEntity** is very powerful, we shouldn’t overuse it. In simple cases, there are other options that satisfy our needs and they result in much cleaner code.
- ✅**URI Path Versioning**✅, were chosen for its popularity.
@@ -98,6 +107,10 @@ You get bonus points if:
98
107
99
108
- Country letter representation "**two letters**" [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) will be used, since it was in specifications.
100
109
110
+
### Prerequisites:
111
+
- Lates java JDK is fine to run commands.
112
+
- Latest Docker.
113
+
101
114
# Not sure things ⚠️👀?
102
115
103
116
- I am not sure that, am i utilizing the **.subscribe** rightly. Like in this example, i don't have any of such in code directly `.subscribe(this::someFunction, this::someFunctionIfErrorHappened);`. My service is simple passing data to front end by means of **Project Reactor**. Well, yes if there would be db attached, then this would be suitable approach, but i didn't come any use for such case.
# Docker way (Preferred!). ⚠️ Start separately fe and be for now! ⚠️
128
+
# Docker way (Preferred!).
116
129
117
-
- Compile your Maven project, run tests, and package it into a JAR.
130
+
For now just start the containers by running the following command:
118
131
119
132
```bash
120
-
./mvnw package
133
+
docker-compose up --build
121
134
```
122
135
123
-
♻️ **Under progress** ♻️ This could possible in one command leveraging a multi-step process. For now just start the containers by running the following command:
136
+
- Front end will be in `http://localhost:8081/`.
137
+
- Back end will be example `http://localhost:8080/countries/v1/`.
124
138
125
-
```bash
126
-
docker compose up
127
-
```
139
+
⚠️ fix WireMock, so you can remove skip test flag! ⚠️
Copy file name to clipboardExpand all lines: country-service-backend/src/main/resources/application.yml
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,17 @@
1
1
# We are making this configuration here, because if there would be more environments for this microservice to be ran on it would be easier for uss. Also for better manage the API versioning.
0 commit comments