Skip to content

Commit

Permalink
added hasura via generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanprozzi committed Jul 12, 2022
1 parent d107574 commit e1e47d7
Show file tree
Hide file tree
Showing 15 changed files with 9,749 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
}
}
},
"defaultProject": "dungeon-master-v2"
"defaultProject": "dungeon-master-v2",
"workspaceLayout": {
"servicesDir": "services"
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@nrwl/react": "14.4.2",
"@nrwl/web": "14.4.2",
"@nrwl/workspace": "14.4.2",
"@raftlabs/nx-hasura": "^0.0.6",
"@testing-library/react": "13.3.0",
"@types/jest": "27.4.1",
"@types/node": "16.11.7",
Expand All @@ -47,6 +48,7 @@
"eslint-plugin-jsx-a11y": "6.6.0",
"eslint-plugin-react": "7.30.1",
"eslint-plugin-react-hooks": "4.6.0",
"hasura-cli": "latest",
"jest": "27.5.1",
"nx": "14.4.2",
"prettier": "^2.6.2",
Expand Down
8 changes: 8 additions & 0 deletions services/dmv2-hasura/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM hasura/graphql-engine:v2.0.1
# Copy migrations and metadata to default folders
COPY ./migrations /hasura-migrations
COPY ./metadata /hasura-metadata


# start graphql engine after migration
CMD graphql-engine serve
8 changes: 8 additions & 0 deletions services/dmv2-hasura/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 3
metadata_directory: metadata
migrations_directory: migrations
seeds_directory: seeds
endpoint: http://localhost:5080
actions:
kind: synchronous
handler_webhook_baseurl: http://localhost:3000
Empty file.
6 changes: 6 additions & 0 deletions services/dmv2-hasura/metadata/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
actions: []
custom_types:
enums: []
input_objects: []
objects: []
scalars: []
1 change: 1 addition & 0 deletions services/dmv2-hasura/metadata/allow_list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions services/dmv2-hasura/metadata/cron_triggers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions services/dmv2-hasura/metadata/databases/databases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions services/dmv2-hasura/metadata/query_collections.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions services/dmv2-hasura/metadata/remote_schemas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions services/dmv2-hasura/metadata/version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: 3
11 changes: 11 additions & 0 deletions services/dmv2-hasura/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "services/dmv2-hasura",
"targets": {
"build": {
"executor": "@raftlabs/nx-hasura:build"
}
},
"tags": []
}
1 change: 1 addition & 0 deletions workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": 2,
"projects": {
"common-utilities": "libs/common-utilities",
"dmv2-hasura": "services/dmv2-hasura",
"dungeon-master-v2": "apps/dungeon-master-v2",
"dungeon-master-v2-e2e": "apps/dungeon-master-v2-e2e"
}
Expand Down
9,703 changes: 9,703 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit e1e47d7

Please sign in to comment.