Skip to content
Snippets Groups Projects
Commit 969cc5b0 authored by Gregor Schulz's avatar Gregor Schulz
Browse files

mesh-events

parent 1369a3d1
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ export DONATIONS_API_URL=http://127.0.0.1:8001/graphql ...@@ -25,6 +25,7 @@ export DONATIONS_API_URL=http://127.0.0.1:8001/graphql
export GOODNEWS_API_URL=http://127.0.0.1:8002/graphql export GOODNEWS_API_URL=http://127.0.0.1:8002/graphql
export GEO_API_URL=http://127.0.0.1:8003/graphql export GEO_API_URL=http://127.0.0.1:8003/graphql
export VOLUNTEERING_API_URL=http://127.0.0.1:8004/graphql export VOLUNTEERING_API_URL=http://127.0.0.1:8004/graphql
export EVENTS_API_URL=http://127.0.0.1:8006/graphql
export NOTIFICATIONS_API_URL=http://127.0.0.1:8005/graphql export NOTIFICATIONS_API_URL=http://127.0.0.1:8005/graphql
export TRANSLATION_API_URL=http://127.0.0.1:8089/graphql export TRANSLATION_API_URL=http://127.0.0.1:8089/graphql
export MODERATION_BACKEND_URL=http://127.0.0.1:3001/graphql export MODERATION_BACKEND_URL=http://127.0.0.1:3001/graphql
......
...@@ -166,6 +166,7 @@ development_build_mesh: ...@@ -166,6 +166,7 @@ development_build_mesh:
GOODNEWS_API_URL: https://staging.goodnews.apis.holi.social/graphql GOODNEWS_API_URL: https://staging.goodnews.apis.holi.social/graphql
OKUNA_URL: https://staging.social.apis.holi.social/graphql OKUNA_URL: https://staging.social.apis.holi.social/graphql
VOLUNTEERING_API_URL: https://staging.volunteering.apis.holi.social/graphql VOLUNTEERING_API_URL: https://staging.volunteering.apis.holi.social/graphql
EVENTS_API_URL: https://staging.events.apis.holi.social/graphql
NOTIFICATIONS_API_URL: https://staging.notifications.apis.holi.social/graphql NOTIFICATIONS_API_URL: https://staging.notifications.apis.holi.social/graphql
TRANSLATION_API_URL: https://staging.translation.apis.holi.social/graphql TRANSLATION_API_URL: https://staging.translation.apis.holi.social/graphql
MODERATION_BACKEND_URL: https://staging.moderation.apis.holi.social/graphql MODERATION_BACKEND_URL: https://staging.moderation.apis.holi.social/graphql
...@@ -276,6 +277,7 @@ production_build_mesh: ...@@ -276,6 +277,7 @@ production_build_mesh:
GOODNEWS_API_URL: https://production.goodnews.apis.holi.social/graphql GOODNEWS_API_URL: https://production.goodnews.apis.holi.social/graphql
OKUNA_URL: https://production.social.apis.holi.social/graphql OKUNA_URL: https://production.social.apis.holi.social/graphql
VOLUNTEERING_API_URL: https://production.volunteering.apis.holi.social/graphql VOLUNTEERING_API_URL: https://production.volunteering.apis.holi.social/graphql
EVENTS_API_URL: https://production.events.apis.holi.social/graphql
NOTIFICATIONS_API_URL: https://production.notifications.apis.holi.social/graphql NOTIFICATIONS_API_URL: https://production.notifications.apis.holi.social/graphql
TRANSLATION_API_URL: https://production.translation.apis.holi.social/graphql TRANSLATION_API_URL: https://production.translation.apis.holi.social/graphql
MODERATION_BACKEND_URL: https://moderation.apis.holi.social/graphql MODERATION_BACKEND_URL: https://moderation.apis.holi.social/graphql
......
...@@ -75,6 +75,23 @@ sources: ...@@ -75,6 +75,23 @@ sources:
value: appVolunteering_ value: appVolunteering_
includeRootOperations: true includeRootOperations: true
includeTypes: false includeTypes: false
- name: app-events
handler:
graphql:
endpoint: '{env.EVENTS_API_URL}'
transforms:
# Prefix for types
- prefix:
mode: wrap
value: AppEvents_
includeRootOperations: false
includeTypes: true
# Prefix for operations
- prefix:
mode: wrap
value: appEvents_
includeRootOperations: true
includeTypes: false
- name: geo - name: geo
handler: handler:
graphql: graphql:
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
../wait-for-port.sh 8003 ../wait-for-port.sh 8003
../wait-for-port.sh 8004 ../wait-for-port.sh 8004
../wait-for-port.sh 8005 ../wait-for-port.sh 8005
../wait-for-port.sh 8006
../wait-for-port.sh 8089 ../wait-for-port.sh 8089
../wait-for-port.sh 3001 # moderation backend ../wait-for-port.sh 3001 # moderation backend
yarn mesh build yarn mesh build
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
"main": "ts-node server", "main": "ts-node server",
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "yarn mesh build && cp logger.ts .mesh/ && OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} MODERATION_BACKEND_URL=${MODERATION_BACKEND_URL:-http://127.0.0.1:3001/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8003/graphql} VOLUNTEERING_API_URL=${VOLUNTEERING_API_URL:-http://127.0.0.1:8004/graphql} NOTIFICATIONS_API_URL=${NOTIFICATIONS_API_URL:-http://127.0.0.1:8005/graphql} TRANSLATION_API_URL=${TRANSLATION_API_URL:-http://127.0.0.1:8089/graphql} MATRIX_SERVER_BASE_URL=${MATRIX_SERVER_BASE_URL:-http://127.0.0.1:8008} REDIS_HOST=${REDIS_HOST:-http://127.0.0.1} REDIS_PORT=${REDIS_PORT:-6380} REDIS_DB=${REDIS_DB:-5} DEBUG=1 ts-node server", "dev": "yarn mesh build && cp logger.ts .mesh/ && OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} MODERATION_BACKEND_URL=${MODERATION_BACKEND_URL:-http://127.0.0.1:3001/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8003/graphql} VOLUNTEERING_API_URL=${VOLUNTEERING_API_URL:-http://127.0.0.1:8004/graphql} NOTIFICATIONS_API_URL=${NOTIFICATIONS_API_URL:-http://127.0.0.1:8005/graphql} TRANSLATION_API_URL=${TRANSLATION_API_URL:-http://127.0.0.1:8089/graphql} EVENTS_API_URL=${EVENTS_API_URL:-http://127.0.0.1:8006/graphql} MATRIX_SERVER_BASE_URL=${MATRIX_SERVER_BASE_URL:-http://127.0.0.1:8008} REDIS_HOST=${REDIS_HOST:-http://127.0.0.1} REDIS_PORT=${REDIS_PORT:-6380} REDIS_DB=${REDIS_DB:-5} DEBUG=1 ts-node server",
"build": "OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} MODERATION_BACKEND_URL=${MODERATION_BACKEND_URL:-http://127.0.0.1:3001/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8003/graphql} VOLUNTEERING_API_URL=${VOLUNTEERING_API_URL:-http://127.0.0.1:8004/graphql} NOTIFICATIONS_API_URL=${NOTIFICATIONS_API_URL:-http://127.0.0.1:8005/graphql} TRANSLATION_API_URL=${TRANSLATION_API_URL:-http://127.0.0.1:8089/graphql} REDIS_HOST=${REDIS_HOST:-http://127.0.0.1} REDIS_PORT=${REDIS_PORT:-6380} REDIS_DB=${REDIS_DB:-5} DEBUG=1 mesh build", "build": "OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} MODERATION_BACKEND_URL=${MODERATION_BACKEND_URL:-http://127.0.0.1:3001/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8003/graphql} VOLUNTEERING_API_URL=${VOLUNTEERING_API_URL:-http://127.0.0.1:8004/graphql} NOTIFICATIONS_API_URL=${NOTIFICATIONS_API_URL:-http://127.0.0.1:8005/graphql} TRANSLATION_API_URL=${TRANSLATION_API_URL:-http://127.0.0.1:8089/graphql} EVENTS_API_URL=${EVENTS_API_URL:-http://127.0.0.1:8006/graphql} REDIS_HOST=${REDIS_HOST:-http://127.0.0.1} REDIS_PORT=${REDIS_PORT:-6380} REDIS_DB=${REDIS_DB:-5} DEBUG=1 mesh build",
"serve": "OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} MODERATION_BACKEND_URL=${MODERATION_BACKEND_URL:-http://127.0.0.1:3001/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8003/graphql} VOLUNTEERING_API_URL=${VOLUNTEERING_API_URL:-http://127.0.0.1:8004/graphql} NOTIFICATIONS_API_URL=${NOTIFICATIONS_API_URL:-http://127.0.0.1:8005/graphql} TRANSLATION_API_URL=${TRANSLATION_API_URL:-http://127.0.0.1:8089/graphql} MATRIX_SERVER_BASE_URL=${MATRIX_SERVER_BASE_URL:-http://127.0.0.1:8008} REDIS_HOST=${REDIS_HOST:-http://127.0.0.1} REDIS_PORT=${REDIS_PORT:-6380} REDIS_DB=${REDIS_DB:-5} DEBUG=1 ts-node server", "serve": "OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} MODERATION_BACKEND_URL=${MODERATION_BACKEND_URL:-http://127.0.0.1:3001/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8003/graphql} VOLUNTEERING_API_URL=${VOLUNTEERING_API_URL:-http://127.0.0.1:8004/graphql} NOTIFICATIONS_API_URL=${NOTIFICATIONS_API_URL:-http://127.0.0.1:8005/graphql} TRANSLATION_API_URL=${TRANSLATION_API_URL:-http://127.0.0.1:8089/graphql} EVENTS_API_URL=${EVENTS_API_URL:-http://127.0.0.1:8006/graphql} MATRIX_SERVER_BASE_URL=${MATRIX_SERVER_BASE_URL:-http://127.0.0.1:8008} REDIS_HOST=${REDIS_HOST:-http://127.0.0.1} REDIS_PORT=${REDIS_PORT:-6380} REDIS_DB=${REDIS_DB:-5} DEBUG=1 ts-node server",
"lint": "echo 'nothing to be linted ATM'", "lint": "echo 'nothing to be linted ATM'",
"test": "jest", "test": "jest",
"clean": "npx rimraf .mesh && npx rimraf node_modules", "clean": "npx rimraf .mesh && npx rimraf node_modules",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment