Skip to content

Commit 9c433dc

Browse files
authored
Merge pull request #39 from MEITREX/add-tutor-service
Added tutor service to graphql gateway
2 parents 5186f21 + e83d796 commit 9c433dc

3 files changed

Lines changed: 24 additions & 16 deletions

File tree

.meshrc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ sources:
6868
endpoint: "{env.GAMIFICATION_SERVICE_URL}"
6969
operationHeaders:
7070
CurrentUser: "{context.currentUserJson}"
71+
- name: TutorService
72+
handler:
73+
graphql:
74+
endpoint: "{env.TUTOR_SERVICE_URL}"
75+
operationHeaders:
76+
CurrentUser: "{context.currentUserJson}"
7177
additionalTypeDefs:
7278
- "./additionalTypeDefs/content.graphqls"
7379
- "./additionalTypeDefs/course.graphqls"

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,23 @@ 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-
| ASSIGNMENT_SERVICE_URL | URL for assignment service GraphQL | http://host.docker.internal:11001/graphql | http://localhost:3500/v1.0/invoke/assignment-service/method/graphql |
64-
| GAMIFICATION_SERVICE_URL | URL for gamification service GraphQL | http://host.docker.internal:1201/graphql | http://localhost:1200\v1.0/invoke/gamifiation-service/method/graphql |
65-
| 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+
| ASSIGNMENT_SERVICE_URL | URL for assignment service GraphQL | http://host.docker.internal:1101/graphql | http://localhost:3500/v1.0/invoke/assignment-service/method/graphql |
64+
| GAMIFICATION_SERVICE_URL | URL for gamification service GraphQL | http://host.docker.internal:1201/graphql | http://localhost:1200\v1.0/invoke/gamifiation-service/method/graphql |
65+
| TUTOR_SERVICE_URL | URL for AI tutor service GraphQL | http://host.docker.internal:1301/graphql | http://localhost:3500/v1.0/invoke/tutor-service/method/graphql |
66+
| 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 |
6667

6768

6869

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ services:
2525
DOCPROCAI_SERVICE_URL: http://app-docprocai:9901/graphql/
2626
ASSIGNMENT_SERVICE_URL: http://app-assignment:1101/graphql
2727
GAMIFICATION_SERVICE_URL: http://app-gamification:1201/graphql
28+
TUTOR_SERVICE_URL: http://app-tutor:1301/graphql
2829
DEBUG: 0
2930
ENABLE_LOGGING: 1 # Set to 1 to enable custom logging
3031
networks:

0 commit comments

Comments
 (0)