Skip to content

Commit fe6ec6f

Browse files
authored
Merge pull request #37 from MEITREX/add-gamification-service
add gamification service to the gateway and added the service the the readme
2 parents 61d2ce2 + 4b47852 commit fe6ec6f

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

.meshrc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ sources:
5656
endpoint: "{env.DOCPROCAI_SERVICE_URL}"
5757
operationHeaders:
5858
CurrentUser: "{context.currentUserJson}"
59+
- name: GamificationService
60+
handler:
61+
graphql:
62+
endpoint: "{env.GAMIFICATION_SERVICE_URL}"
63+
operationHeaders:
64+
CurrentUser: "{context.currentUserJson}"
5965
additionalTypeDefs:
6066
- "./additionalTypeDefs/content.graphqls"
6167
- "./additionalTypeDefs/course.graphqls"

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,21 @@ The `additionalResolvers` section defines code for custom GraphQL queries which
4747

4848
### Relevant for deployment
4949

50-
| Name | Description | Value in Dev Environment | Value in Prod Environment |
51-
|------------------------|------------------------------------|----------------------------------------------------------------------------|---------------------------------------------------------------------|
52-
| GATEWAY_PORT | Gateway port | 8080 | 8080 |
53-
| GATEWAY_HOSTNAME | Gateway host name | 0.0.0.0 | 0.0.0.0 |
54-
| DAPR_HTTP_PORT | Dapr HTTP Port | - | 3500 |
55-
| COURSE_SERVICE_URL | URL for course service GraphQL | http://host.docker.internal:2001/graphql | http://localhost:3500/v1.0/invoke/course-service/method/graphql |
56-
| MEDIA_SERVICE_URL | URL for media service GraphQL | http://host.docker.internal:3001/graphql | http://localhost:3500/v1.0/invoke/media-service/method/graphql |
57-
| CONTENT_SERVICE_URL | URL for content service GraphQL | http://host.docker.internal:4001/graphql | http://localhost:3500/v1.0/invoke/content-service/method/graphql |
58-
| USER_SERVICE_URL | URL for user service GraphQL | http://host.docker.internal:5001/graphql | http://localhost:3500/v1.0/invoke/user-service/method/graphql |
59-
| FLASHCARD_SERVICE_URL | URL for flashcard service GraphQL | http://host.docker.internal:6001/graphql | http://localhost:3500/v1.0/invoke/flashcard-service/method/graphql |
60-
| REWARD_SERVICE_URL | URL for reward service GraphQL | http://host.docker.internal:7001/graphql | http://localhost:3500/v1.0/invoke/reward-service/method/graphql |
61-
| SKILLLEVEL_SERVICE_URL | URL for skilllevel service GraphQL | http://host.docker.internal:8001/graphql | http://localhost:3500/v1.0/invoke/skilllevel-service/method/graphql |
62-
| QUIZ_SERVICE_URL | URL for quiz service GraphQL | http://host.docker.internal:9001/graphql | http://localhost:3500/v1.0/invoke/quiz-service/method/graphql | |
63-
| JWKS_URL | URL for jwks keycloak | http://host.docker.internal:9009/realms/GITS/protocol/openid-connect/certs | http://keycloak/keycloak/realms/GITS/protocol/openid-connect/certs |
50+
| Name | Description | Value in Dev Environment | Value in Prod Environment |
51+
|--------------------------|--------------------------------------|----------------------------------------------------------------------------|-----------------------------------------------------------------------|
52+
| GATEWAY_PORT | Gateway port | 8080 | 8080 |
53+
| GATEWAY_HOSTNAME | Gateway host name | 0.0.0.0 | 0.0.0.0 |
54+
| DAPR_HTTP_PORT | Dapr HTTP Port | - | 3500 |
55+
| COURSE_SERVICE_URL | URL for course service GraphQL | http://host.docker.internal:2001/graphql | http://localhost:3500/v1.0/invoke/course-service/method/graphql |
56+
| MEDIA_SERVICE_URL | URL for media service GraphQL | http://host.docker.internal:3001/graphql | http://localhost:3500/v1.0/invoke/media-service/method/graphql |
57+
| CONTENT_SERVICE_URL | URL for content service GraphQL | http://host.docker.internal:4001/graphql | http://localhost:3500/v1.0/invoke/content-service/method/graphql |
58+
| USER_SERVICE_URL | URL for user service GraphQL | http://host.docker.internal:5001/graphql | http://localhost:3500/v1.0/invoke/user-service/method/graphql |
59+
| FLASHCARD_SERVICE_URL | URL for flashcard service GraphQL | http://host.docker.internal:6001/graphql | http://localhost:3500/v1.0/invoke/flashcard-service/method/graphql |
60+
| REWARD_SERVICE_URL | URL for reward service GraphQL | http://host.docker.internal:7001/graphql | http://localhost:3500/v1.0/invoke/reward-service/method/graphql |
61+
| SKILLLEVEL_SERVICE_URL | URL for skilllevel service GraphQL | http://host.docker.internal:8001/graphql | http://localhost:3500/v1.0/invoke/skilllevel-service/method/graphql |
62+
| QUIZ_SERVICE_URL | URL for quiz service GraphQL | http://host.docker.internal:9001/graphql | http://localhost:3500/v1.0/invoke/quiz-service/method/graphql | |
63+
| GAMIFICATION_SERVICE_URL | URL for gamification service GraphQL | http://host.docker.internal:1201/graphql | http://localhost:1200\v1.0/invoke/gamifiation-service/method/graphql |
64+
| JWKS_URL | URL for jwks keycloak | http://host.docker.internal:9009/realms/GITS/protocol/openid-connect/certs | http://keycloak/keycloak/realms/GITS/protocol/openid-connect/certs |
6465

6566

6667
### Other properties

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
SKILLLEVEL_SERVICE_URL: http://app-skilllevel:8001/graphql
2424
QUIZ_SERVICE_URL: http://app-quiz:9001/graphql
2525
DOCPROCAI_SERVICE_URL: http://app-docprocai:9901/graphql/
26+
GAMIFICATION_SERVICE_URL: http://app-gamification:1201/graphql
2627
DEBUG: 0
2728
ENABLE_LOGGING: 1 # Set to 1 to enable custom logging
2829
networks:

0 commit comments

Comments
 (0)