Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-unified-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-unified-api
Commits
5bb76b5c
Commit
5bb76b5c
authored
2 years ago
by
Daniel Bimschas
Browse files
Options
Downloads
Patches
Plain Diff
HOLI-2651: add geo api
parent
f74ef1c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.meshrc.yml
+17
-0
17 additions, 0 deletions
.meshrc.yml
package.json
+2
-2
2 additions, 2 deletions
package.json
terraform/environments/deployment.tf
+4
-0
4 additions, 0 deletions
terraform/environments/deployment.tf
terraform/environments/vars.tf
+1
-0
1 addition, 0 deletions
terraform/environments/vars.tf
with
24 additions
and
2 deletions
.meshrc.yml
+
17
−
0
View file @
5bb76b5c
...
...
@@ -41,3 +41,20 @@ sources:
value
:
appGoodNews_
includeRootOperations
:
true
includeTypes
:
false
-
name
:
geo
handler
:
graphql
:
endpoint
:
"
{env.GEO_API_URL}"
transforms
:
# Prefix for types
-
prefix
:
mode
:
wrap
value
:
Geo_
includeRootOperations
:
false
includeTypes
:
true
# Prefix for operations
-
prefix
:
mode
:
wrap
value
:
geo_
includeRootOperations
:
true
includeTypes
:
false
This diff is collapsed.
Click to expand it.
package.json
+
2
−
2
View file @
5bb76b5c
...
...
@@ -3,8 +3,8 @@
"version"
:
"1.0.0"
,
"type"
:
"module"
,
"scripts"
:
{
"dev"
:
"OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/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} DEBUG=1 mesh dev --port=4000"
,
"start"
:
"OKUNA_URL=${OKUNA_URL:-https://staging.unified.apis.project-holi.org/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} DEBUG=1 mesh dev --port=4000"
,
"dev"
:
"OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/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:8002/graphql}
DEBUG=1 mesh dev --port=4000"
,
"start"
:
"OKUNA_URL=${OKUNA_URL:-https://staging.unified.apis.project-holi.org/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-https://staging.unified.apis.project-holi.org/graphql}
GEO_API_URL=${GEO_API_URL:-https://staging.unified.apis.project-holi.org/graphql}
DEBUG=1 mesh dev --port=4000"
,
"lint"
:
"echo 'nothing to be linted ATM'"
,
"test"
:
"echo 'unit testing goes here'"
,
"clean"
:
"echo 'nothing to be done'"
,
...
...
This diff is collapsed.
Click to expand it.
terraform/environments/deployment.tf
+
4
−
0
View file @
5bb76b5c
...
...
@@ -54,6 +54,10 @@ resource "google_cloud_run_service" "unified_api" {
name
=
"GOODNEWS_API_URL"
value
=
local
.
goodnews_api_url
}
env
{
name
=
"GEO_API_URL"
value
=
local
.
geo_api_url
}
resources
{
limits
=
{
...
...
This diff is collapsed.
Click to expand it.
terraform/environments/vars.tf
+
1
−
0
View file @
5bb76b5c
...
...
@@ -7,4 +7,5 @@ locals {
okuna_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_okuna_common_state
.
outputs
.
dns_okuna_domain
}
/graphql"
donations_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_donations_api_common_state
.
outputs
.
dns_donations_api_domain
}
/graphql"
goodnews_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_goodnews_api_common_state
.
outputs
.
dns_goodnews_api_domain
}
/graphql"
geo_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_geo_api_common_state
.
outputs
.
dns_geo_api_domain
}
/graphql"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment