Skip to content

Commit

Permalink
Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kahdojay committed Mar 26, 2020
1 parent 458cd4d commit 6f39969
Show file tree
Hide file tree
Showing 42 changed files with 15,976 additions and 7 deletions.
74 changes: 67 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,73 @@
## My Project
# Quick Notes

TODO: Fill this README out!
#### Deploy a full stack web app to help you organize your notes when you're on the go.

Be sure to:
🛠 Built with React, GraphQL, AWS Amplify, AWS AppSync, Amazon Transcribe, & Amazon Polly

* Change the title in this README
* Edit your repository description on GitHub
### Features

## License
- 🎙 Record notes
- 🔈 Play notes back
- 📖 Read notes
- 👮‍ Authenticated
- 🔥 Serverless back end
- 🚀 GraphQL
- 💻 Deploy back end in minutes

This library is licensed under the MIT-0 License. See the LICENSE file.
![](./example.jpg)

## Deploy the App

To automatically deploy the app, click the big orange button 👇

[![amplifybutton](https://oneclick.amplifyapp.com/button.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/kkemple/quick-notes)

> If you wish to manually deploy the app, follow the instructions below.
### Deploy the back end and run the app

1. Clone the repo & install the dependencies

```sh
~ git clone https://github.com/kkemple/quick-notes.git
~ cd quick-notes
~ npm install
```

2. Initialize and deploy the Amplify project

```sh
~ amplify init
? Enter a name for the environment: dev (or whatever you would like to call this env)
? Choose your default editor: <YOUR_EDITOR_OF_CHOICE>
? Do you want to use an AWS profile? Y

~ amplify push
? Are you sure you want to continue? Y
? Do you want to generate code for your newly created GraphQL API? N
> We already have the GraphQL code generated for this project, so generating it here is not necessary.
```

3. Start the app and register a new user

```sh
~ yarn start
```

### Deploy the front end

1. Create a new repository with your git service of choice

2. Push the project to your new repository

```sh
~ git remote add origin <your_new_repository>
~ git push --set-upstream master
```

3. Connect to [AWS Amplify Console](https://console.aws.amazon.com/amplify/home) and wait for build to start. You will be given a production URL and you are ready to take some notes!


### License

This library is licensed under the MIT-0 License. See the LICENSE file.
7 changes: 7 additions & 0 deletions amplify/.config/local-aws-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dev": {
"configLevel": "project",
"useProfile": true,
"profileName": "isengard-amplify-cli"
}
}
5 changes: 5 additions & 0 deletions amplify/.config/local-env-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projectPath": "/Users/kemplk/Projects/quick-notes",
"defaultEditor": "code",
"envName": "dev"
}
17 changes: 17 additions & 0 deletions amplify/.config/project-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"projectName": "quick-notes",
"version": "2.0",
"frontend": "javascript",
"javascript": {
"framework": "react-native",
"config": {
"SourceDir": "/",
"DistributionDir": "/",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
},
"providers": [
"awscloudformation"
]
}
86 changes: 86 additions & 0 deletions amplify/backend/amplify-meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"providers": {
"awscloudformation": {
"AuthRoleName": "quick-notes-dev-20190826145900-authRole",
"UnauthRoleArn": "arn:aws:iam::781155362072:role/quick-notes-dev-20190826145900-unauthRole",
"AuthRoleArn": "arn:aws:iam::781155362072:role/quick-notes-dev-20190826145900-authRole",
"Region": "us-east-1",
"DeploymentBucketName": "quick-notes-dev-20190826145900-deployment",
"UnauthRoleName": "quick-notes-dev-20190826145900-unauthRole",
"StackName": "quick-notes-dev-20190826145900",
"StackId": "arn:aws:cloudformation:us-east-1:781155362072:stack/quick-notes-dev-20190826145900/90da8c80-c833-11e9-b472-1270c4b0e9f2"
}
},
"auth": {
"quicknotes9506fafe": {
"service": "Cognito",
"providerPlugin": "awscloudformation",
"dependsOn": [],
"providerMetadata": {
"s3TemplateURL": "https://s3.amazonaws.com/quick-notes-dev-20190826145900-deployment/amplify-cfn-templates/auth/quicknotes9506fafe-cloudformation-template.yml",
"logicalId": "authquicknotes9506fafe"
},
"lastPushTimeStamp": "2019-08-26T21:18:58.110Z",
"output": {
"AppClientSecret": "ugrpu426hfvke3p5dchk696i7sfp0mro3ragd12mfgs3t24jfed",
"UserPoolId": "us-east-1_ZuZiMUD40",
"AppClientIDWeb": "1fkag5kje3n9r6q7q8s84eft4q",
"AppClientID": "60g6ncl0tcddi0hq53tpg161d8",
"IdentityPoolId": "us-east-1:94b99aeb-7d34-4ac7-b38f-8e82b8c2d1dc",
"IdentityPoolName": "quicknotes9506fafe_identitypool_9506fafe__dev",
"UserPoolName": "quicknotes9506fafe_userpool_9506fafe"
},
"lastPushDirHash": "reSRvwFnPwcP5s2OgU6qqyOD/cA="
}
},
"api": {
"quicknotes": {
"service": "AppSync",
"providerPlugin": "awscloudformation",
"output": {
"securityType": "AMAZON_COGNITO_USER_POOLS",
"GraphQLAPIIdOutput": "fsgw5f46inehpeyukx25tyeioq",
"GraphQLAPIEndpointOutput": "https://mnfvrymm4jfypo3v5mgekvuzse.appsync-api.us-east-1.amazonaws.com/graphql"
},
"providerMetadata": {
"s3TemplateURL": "https://s3.amazonaws.com/quick-notes-dev-20190826145900-deployment/amplify-cfn-templates/api/cloudformation-template.json",
"logicalId": "apiquicknotes"
},
"lastPushTimeStamp": "2019-08-26T21:18:59.234Z",
"lastPushDirHash": "huk8fMcNNuW4ph/mF9JKL1HSEUU="
}
},
"predictions": {
"transcriptione65259cc": {
"providerPlugin": "awscloudformation",
"service": "Transcribe",
"convertType": "transcription",
"providerMetadata": {
"s3TemplateURL": "https://s3.amazonaws.com/quick-notes-dev-20190826145900-deployment/amplify-cfn-templates/predictions/transcriptione65259cc-template.json",
"logicalId": "predictionstranscriptione65259cc"
},
"lastPushTimeStamp": "2019-08-26T21:18:58.112Z",
"output": {
"language": "en-US",
"region": "us-east-1"
},
"lastPushDirHash": "UxEvB0oICy2EJ7JFZKjKvEvIKAo="
},
"speechGeneratorc72b6c38": {
"providerPlugin": "awscloudformation",
"service": "Polly",
"convertType": "speechGenerator",
"providerMetadata": {
"s3TemplateURL": "https://s3.amazonaws.com/quick-notes-dev-20190826145900-deployment/amplify-cfn-templates/predictions/speechGeneratorc72b6c38-template.json",
"logicalId": "predictionsspeechGeneratorc72b6c38"
},
"lastPushTimeStamp": "2019-08-26T21:18:58.113Z",
"output": {
"voice": "Justin",
"language": "en-US",
"region": "us-east-1"
},
"lastPushDirHash": "hqy/FzjEbw/RDdLL3jD/+urSqro="
}
}
}
11 changes: 11 additions & 0 deletions amplify/backend/api/quicknotes/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"AppSyncApiName": "quicknotes",
"DynamoDBBillingMode": "PAY_PER_REQUEST",
"DynamoDBEnableServerSideEncryption": "false",
"AuthCognitoUserPoolId": {
"Fn::GetAtt": [
"authquicknotes9506fafe",
"Outputs.UserPoolId"
]
}
}
7 changes: 7 additions & 0 deletions amplify/backend/api/quicknotes/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type Note @model @auth(rules: [{ allow: owner }]) {
id: ID!
title: String!
text: String!
createdAt: String
updatedAt: String
}
61 changes: 61 additions & 0 deletions amplify/backend/api/quicknotes/stacks/CustomResources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"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": ""
}
}
}
57 changes: 57 additions & 0 deletions amplify/backend/auth/quicknotes9506fafe/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"identityPoolName": "quicknotes9506fafe_identitypool_9506fafe",
"allowUnauthenticatedIdentities": false,
"resourceNameTruncated": "quickn9506fafe",
"userPoolName": "quicknotes9506fafe_userpool_9506fafe",
"autoVerifiedAttributes": [
"email"
],
"mfaConfiguration": "OFF",
"mfaTypes": [
"SMS Text Message"
],
"smsAuthenticationMessage": "Your authentication code is {####}",
"smsVerificationMessage": "Your verification code is {####}",
"emailVerificationSubject": "Your verification code",
"emailVerificationMessage": "Your verification code is {####}",
"defaultPasswordPolicy": false,
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": [],
"requiredAttributes": [
"email"
],
"userpoolClientGenerateSecret": true,
"userpoolClientRefreshTokenValidity": 30,
"userpoolClientWriteAttributes": [
"email"
],
"userpoolClientReadAttributes": [
"email"
],
"userpoolClientLambdaRole": "quickn9506fafe_userpoolclient_lambda_role",
"userpoolClientSetAttributes": false,
"resourceName": "quicknotes9506fafe",
"authSelections": "identityPoolAndUserPool",
"authRoleArn": {
"Fn::GetAtt": [
"AuthRole",
"Arn"
]
},
"unauthRoleArn": {
"Fn::GetAtt": [
"UnauthRole",
"Arn"
]
},
"useDefault": "default",
"usernameAttributes": [
"email"
],
"triggers": "{}",
"parentStack": {
"Ref": "AWS::StackId"
},
"permissions": [],
"dependsOn": []
}
Loading

0 comments on commit 6f39969

Please sign in to comment.