Skip to content

Commit 1a4f61d

Browse files
chore: update README.md
1 parent 8f34d24 commit 1a4f61d

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,28 @@ to only stop the project and remove all containers, networks, images and volumes
1818

1919
```bash
2020
docker-compose down --rmi all -v
21+
```
22+
23+
to test if the application is running, you can use the following command (windows), if linux remove the `.exe`. It sends an health check request to the API Gateway of the application:
24+
25+
```bash
26+
curl.exe -X GET http://localhost:8080/health
27+
```
28+
29+
or
30+
31+
```bash
32+
curl http://localhost:8080/health
33+
```
34+
35+
to check if the application reaches the service from api-gateway:
36+
37+
```bash
38+
curl.exe http://localhost:8080/service/health
39+
```
40+
41+
to check all endpoints that can be reached from the API Gateway, you can use the following command:
42+
43+
```bash
44+
curl.exe http://localhost:8080/route
2145
```

api_gateway/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
2+
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=

service/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
2+
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=

0 commit comments

Comments
 (0)