Skip to content

Commit 5dd3100

Browse files
committed
let's go
1 parent ff47b51 commit 5dd3100

21 files changed

+6585
-1075
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,19 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
25+
#amplify
26+
amplify/\#current-cloud-backend
27+
amplify/.config/local-*
28+
amplify/mock-data
29+
amplify/backend/amplify-meta.json
30+
amplify/backend/awscloudformation
31+
build/
32+
dist/
33+
node_modules/
34+
aws-exports.js
35+
awsconfiguration.json
36+
amplifyconfiguration.json
37+
amplify-build-config.json
38+
amplify-gradle-config.json
39+
amplifytools.xcconfig

.graphqlconfig.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
projects:
2+
myamplifyapp:
3+
schemaPath: amplify/backend/api/myamplifyapp/build/schema.graphql
4+
includes:
5+
- src/graphql/**/*.js
6+
excludes:
7+
- ./amplify/**
8+
extensions:
9+
amplify:
10+
codeGenTarget: javascript
11+
generatedFileName: ''
12+
docsFilePath: src/graphql
13+
region: eu-west-1
14+
apiId: null
15+
maxDepth: 2
16+
extensions:
17+
amplify:
18+
version: 3

amplify/.config/project-config.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"projectName": "myamplifyapp",
3+
"version": "3.0",
4+
"frontend": "javascript",
5+
"javascript": {
6+
"framework": "react",
7+
"config": {
8+
"SourceDir": "src",
9+
"DistributionDir": "build",
10+
"BuildCommand": "npm run-script build",
11+
"StartCommand": "npm run-script start"
12+
}
13+
},
14+
"providers": [
15+
"awscloudformation"
16+
]
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"AppSyncApiName": "myamplifyapp",
3+
"DynamoDBBillingMode": "PAY_PER_REQUEST",
4+
"DynamoDBEnableServerSideEncryption": false,
5+
"AuthCognitoUserPoolId": {
6+
"Fn::GetAtt": [
7+
"authmyamplifyappe603d0a7",
8+
"Outputs.UserPoolId"
9+
]
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
type TestTalk
2+
@model(subscriptions: null)
3+
@auth(
4+
rules: [
5+
{ allow: owner }
6+
{ allow: private, operations: [read] }
7+
{ allow: public, operations: [read] }
8+
]
9+
) {
10+
id: ID!
11+
clientId: ID
12+
name: String!
13+
description: String!
14+
}
15+
16+
type TestComment
17+
@model
18+
@auth(
19+
rules: [
20+
{
21+
allow: owner
22+
ownerField: "createdBy"
23+
operations: [create, update, delete]
24+
}
25+
{ allow: private, operations: [read] }
26+
]
27+
) {
28+
id: ID!
29+
message: String
30+
createdBy: String
31+
}
32+
33+
type Subscription {
34+
onCreateTestTalk(name: String): TestTalk
35+
@aws_subscribe(mutations: ["createTestTalk"])
36+
onUpdateTestTalk(id: ID, name: String, description: String): TestTalk
37+
@aws_subscribe(mutations: ["updateTestTalk"])
38+
onDeleteTestTalk(id: ID): TestTalk
39+
@aws_subscribe(mutations: ["deleteTestTalk"])
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Description": "An auto-generated nested stack.",
4+
"Metadata": {},
5+
"Parameters": {
6+
"AppSyncApiId": {
7+
"Type": "String",
8+
"Description": "The id of the AppSync API associated with this project."
9+
},
10+
"AppSyncApiName": {
11+
"Type": "String",
12+
"Description": "The name of the AppSync API",
13+
"Default": "AppSyncSimpleTransform"
14+
},
15+
"env": {
16+
"Type": "String",
17+
"Description": "The environment name. e.g. Dev, Test, or Production",
18+
"Default": "NONE"
19+
},
20+
"S3DeploymentBucket": {
21+
"Type": "String",
22+
"Description": "The S3 bucket containing all deployment assets for the project."
23+
},
24+
"S3DeploymentRootKey": {
25+
"Type": "String",
26+
"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory."
27+
}
28+
},
29+
"Resources": {
30+
"EmptyResource": {
31+
"Type": "Custom::EmptyResource",
32+
"Condition": "AlwaysFalse"
33+
}
34+
},
35+
"Conditions": {
36+
"HasEnvironmentParameter": {
37+
"Fn::Not": [
38+
{
39+
"Fn::Equals": [
40+
{
41+
"Ref": "env"
42+
},
43+
"NONE"
44+
]
45+
}
46+
]
47+
},
48+
"AlwaysFalse": {
49+
"Fn::Equals": ["true", "false"]
50+
}
51+
},
52+
"Outputs": {
53+
"EmptyOutput": {
54+
"Description": "An empty output. You may delete this if you have at least one resource above.",
55+
"Value": ""
56+
}
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"Version": 5,
3+
"ElasticsearchWarning": true
4+
}

0 commit comments

Comments
 (0)