Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Create thiswayup.svg #54

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/models
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ awsconfiguration.json
#amplify
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/awscloudformation
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
awsconfiguration.json
amplifyconfiguration.json
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
11 changes: 11 additions & 0 deletions .vscode/settings.json
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
}
}
30 changes: 15 additions & 15 deletions amplify/.config/project-config.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"projectName": "authcra",
"version": "1.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
},
"providers": [
"awscloudformation"
]
"providers": [
"awscloudformation"
],
"projectName": "nest3c",
"version": "3.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
}
}
5 changes: 5 additions & 0 deletions amplify/backend/api/nest3c/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"AppSyncApiName": "nest3c",
"DynamoDBBillingMode": "PAY_PER_REQUEST",
"DynamoDBEnableServerSideEncryption": false
}
16 changes: 16 additions & 0 deletions amplify/backend/api/nest3c/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type Roast @model @auth(rules: [{allow: public}]) {
id: ID!
Roast: [String!]
Ground: [String!]
Roasttosel: [Selection!] @connection(keyName: "byRoast", fields: ["id"])
}

type Selection @model @auth(rules: [{allow: public}]) @key(name: "byRoast", fields: ["roastID"]) {
id: ID!
origin: [String!]
blend: [String!]
bagweight: [Int!]
quantity: Int!
roastID: ID!
}

58 changes: 58 additions & 0 deletions amplify/backend/api/nest3c/stacks/CustomResources.json
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": ""
}
}
}
10 changes: 10 additions & 0 deletions amplify/backend/api/nest3c/transform.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Version": 5,
"ElasticsearchWarning": true,
"ResolverConfig": {
"project": {
"ConflictHandler": "AUTOMERGE",
"ConflictDetection": "VERSION"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Resources:
- ' }'
- '};'
Handler: index.handler
Runtime: nodejs8.10
Runtime: nodejs10.x
Timeout: '300'
Role: !GetAtt
- UserPoolClientRole
Expand Down
34 changes: 28 additions & 6 deletions amplify/backend/backend-config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
{
"auth": {
"cognitocf0c6096": {
"service": "Cognito",
"providerPlugin": "awscloudformation"
}
}
"auth": {
"cognitocf0c6096": {
"service": "Cognito",
"providerPlugin": "awscloudformation"
}
},
"api": {
"nest3c": {
"service": "AppSync",
"providerPlugin": "awscloudformation",
"output": {
"authConfig": {
"defaultAuthentication": {
"authenticationType": "API_KEY",
"apiKeyConfig": {
"apiKeyExpirationDays": 30,
"description": "api key description"
}
},
"additionalAuthenticationProviders": [
{
"authenticationType": "AWS_IAM"
}
]
}
}
}
}
}
20 changes: 20 additions & 0 deletions amplify/team-provider-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"dev": {
"awscloudformation": {
"AuthRoleName": "amplify-authcra-dev-114129-authRole",
"UnauthRoleArn": "arn:aws:iam::457225119127:role/amplify-authcra-dev-114129-unauthRole",
"AuthRoleArn": "arn:aws:iam::457225119127:role/amplify-authcra-dev-114129-authRole",
"Region": "us-east-1",
"DeploymentBucketName": "amplify-authcra-dev-114129-deployment",
"UnauthRoleName": "amplify-authcra-dev-114129-unauthRole",
"StackName": "amplify-authcra-dev-114129",
"StackId": "arn:aws:cloudformation:us-east-1:457225119127:stack/amplify-authcra-dev-114129/4b7590b0-476f-11eb-be7d-123f2d95f4cf",
"AmplifyAppId": "dfb6ys7hkhm55"
},
"categories": {
"auth": {
"cognitocf0c6096": {}
}
}
}
}
14 changes: 4 additions & 10 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
}

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
align-items: center;
}

.App-header {
Expand All @@ -19,14 +19,8 @@
}

.App-link {
color: #61dafb;
color: #ffffff;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}


6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class App extends Component {
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
Artwork
</p>
<a
className="App-link"
href="https://reactjs.org"
href="https://www.metmuseum.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
shop
</a>
</header>
</div>
Expand Down
Binary file added src/IMG_1085.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 13 additions & 6 deletions src/logo.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/models/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { ModelInit, MutableModel, PersistentModelConstructor } from "@aws-amplify/datastore";





export declare class Roast {
readonly id: string;
readonly Roast?: string[];
readonly Ground?: string[];
readonly Roasttosel?: Selection[];
constructor(init: ModelInit<Roast>);
static copyOf(source: Roast, mutator: (draft: MutableModel<Roast>) => MutableModel<Roast> | void): Roast;
}

export declare class Selection {
readonly id: string;
readonly origin?: string[];
readonly blend?: string[];
readonly bagweight?: number[];
readonly quantity: number;
readonly roastID: string;
constructor(init: ModelInit<Selection>);
static copyOf(source: Selection, mutator: (draft: MutableModel<Selection>) => MutableModel<Selection> | void): Selection;
}
12 changes: 12 additions & 0 deletions src/models/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @ts-check
import { initSchema } from '@aws-amplify/datastore';
import { schema } from './schema';



const { Roast, Selection } = initSchema(schema);

export {
Roast,
Selection
};
3 changes: 3 additions & 0 deletions src/models/schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Schema } from '@aws-amplify/datastore';

export declare const schema: Schema;
Loading