Skip to content

Commit 6ac9520

Browse files
author
Dabit
committed
initial commit
0 parents  commit 6ac9520

29 files changed

Lines changed: 5401 additions & 0 deletions

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#amplify
2+
amplify/team-provider-info.json
3+
amplify/\#current-cloud-backend
4+
amplify/.config/local-*
5+
amplify/mock-data
6+
amplify/backend/amplify-meta.json
7+
amplify/backend/awscloudformation
8+
build/
9+
dist/
10+
node_modules/
11+
src/aws-exports.js
12+
awsconfiguration.json

.graphqlconfig.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
projects:
2+
blogamplified:
3+
schemaPath: src/graphql/schema.json
4+
includes:
5+
- src/graphql/**/*.js
6+
excludes:
7+
- ./amplify/**
8+
extensions:
9+
amplify:
10+
codeGenTarget: javascript
11+
generatedFileName: ''
12+
docsFilePath: src/graphql
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"projectName": "jamstack-cms",
3+
"version": "2.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+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"AppSyncApiName": "blogamplified",
3+
"DynamoDBBillingMode": "PAY_PER_REQUEST",
4+
"DynamoDBEnableServerSideEncryption": "false",
5+
"AuthCognitoUserPoolId": {
6+
"Fn::GetAtt": [
7+
"authblogamplifiedc9ee2ce6",
8+
"Outputs.UserPoolId"
9+
]
10+
}
11+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
type Post @model
2+
@auth (
3+
rules: [
4+
{ allow: groups, groups: ["Admin"]},
5+
{ allow: private, operations: [read] },
6+
{ allow: public }
7+
]
8+
) {
9+
id: ID!
10+
title: String!
11+
description: String
12+
content: String!
13+
cover_image: String
14+
createdAt: String
15+
published: Boolean
16+
previewLink: String
17+
category: String
18+
}
19+
20+
type Comment @model @auth(
21+
rules: [
22+
{ allow: groups, groups: ["Admin"], queries: null },
23+
{ allow: owner, queries: null, ownerField: "createdBy" }
24+
]
25+
) {
26+
id: ID!
27+
message: String!
28+
createdBy: String
29+
createdAt: String
30+
}
31+
32+
type Settings @model @auth(rules: [
33+
{ allow: groups, groups: ["Admin"] },
34+
{ allow: groups, groupsField: "adminGroups"}
35+
]) {
36+
id: ID!
37+
mode: String
38+
categories: [String]
39+
adminGroups: [String]
40+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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": [
50+
"true",
51+
"false"
52+
]
53+
}
54+
},
55+
"Outputs": {
56+
"EmptyOutput": {
57+
"Description": "An empty output. You may delete this if you have at least one resource above.",
58+
"Value": ""
59+
}
60+
}
61+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Version": 4
3+
}

0 commit comments

Comments
 (0)