-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cut over to use GraphQL API instead of a local data store
- Loading branch information
1 parent
baed317
commit f6ee8a2
Showing
18 changed files
with
2,544 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
projects: | ||
tddamplifyreact: | ||
schemaPath: src/graphql/schema.json | ||
includes: | ||
- src/graphql/**/*.js | ||
excludes: | ||
- ./amplify/** | ||
extensions: | ||
amplify: | ||
codeGenTarget: javascript | ||
generatedFileName: '' | ||
docsFilePath: src/graphql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"files.exclude": { | ||
"amplify/.config": true, | ||
"amplify/**/*-parameters.json": true, | ||
"amplify/**/amplify.state": true, | ||
"amplify/**/transform.conf.json": true, | ||
"amplify/#current-cloud-backend": true, | ||
"amplify/backend/amplify-meta.json": true, | ||
"amplify/backend/awscloudformation": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"AppSyncApiName": "tddamplifyreact", | ||
"DynamoDBBillingMode": "PAY_PER_REQUEST", | ||
"DynamoDBEnableServerSideEncryption": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. | ||
For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type Note @model { | ||
id: ID! | ||
name: String! | ||
description: String | ||
} |
58 changes: 58 additions & 0 deletions
58
amplify/backend/api/tddamplifyreact/stacks/CustomResources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "An auto-generated nested stack.", | ||
"Metadata": {}, | ||
"Parameters": { | ||
"AppSyncApiId": { | ||
"Type": "String", | ||
"Description": "The id of the AppSync API associated with this project." | ||
}, | ||
"AppSyncApiName": { | ||
"Type": "String", | ||
"Description": "The name of the AppSync API", | ||
"Default": "AppSyncSimpleTransform" | ||
}, | ||
"env": { | ||
"Type": "String", | ||
"Description": "The environment name. e.g. Dev, Test, or Production", | ||
"Default": "NONE" | ||
}, | ||
"S3DeploymentBucket": { | ||
"Type": "String", | ||
"Description": "The S3 bucket containing all deployment assets for the project." | ||
}, | ||
"S3DeploymentRootKey": { | ||
"Type": "String", | ||
"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." | ||
} | ||
}, | ||
"Resources": { | ||
"EmptyResource": { | ||
"Type": "Custom::EmptyResource", | ||
"Condition": "AlwaysFalse" | ||
} | ||
}, | ||
"Conditions": { | ||
"HasEnvironmentParameter": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Equals": [ | ||
{ | ||
"Ref": "env" | ||
}, | ||
"NONE" | ||
] | ||
} | ||
] | ||
}, | ||
"AlwaysFalse": { | ||
"Fn::Equals": ["true", "false"] | ||
} | ||
}, | ||
"Outputs": { | ||
"EmptyOutput": { | ||
"Description": "An empty output. You may delete this if you have at least one resource above.", | ||
"Value": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Version": 5, | ||
"ElasticsearchWarning": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.