Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabit committed Mar 29, 2019
1 parent 69932e8 commit 1656377
Show file tree
Hide file tree
Showing 23 changed files with 3,423 additions and 137 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

#amplify
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/backend/amplify-meta.json
amplify/backend/awscloudformation
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
16 changes: 16 additions & 0 deletions .graphqlconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
projects:
writewithme:
schemaPath: src/graphql/schema.json
includes:
- src/graphql/**/*.js
excludes:
- ./amplify/**
extensions:
amplify:
codeGenTarget: javascript
generatedFileName: ''
docsFilePath: src/graphql
graphQLApiId: bh2ztsfsjzdpno6ndpbud3bh7e
endpoints:
prod: >-
https://onjvuqjth5albooqap57zce2oe.appsync-api.eu-central-1.amazonaws.com/graphql
68 changes: 2 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,4 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# Write with me

## Available Scripts
A real-time collaborative blog post editor built with GraphQL, React, React Markdown, & AWS AppSync.

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
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": "writewithme",
"version": "2.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
},
"providers": [
"awscloudformation"
]
}
4 changes: 4 additions & 0 deletions amplify/backend/api/writewithme/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"AppSyncApiName": "writewithme",
"DynamoDBBillingMode": "PAY_PER_REQUEST"
}
7 changes: 7 additions & 0 deletions amplify/backend/api/writewithme/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type Todo @model {
id: ID!
clientId: ID!
markdown: String!
title: String!
createdAt: String
}
61 changes: 61 additions & 0 deletions amplify/backend/api/writewithme/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": ""
}
}
}
11 changes: 11 additions & 0 deletions amplify/backend/backend-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"api": {
"writewithme": {
"service": "AppSync",
"providerPlugin": "awscloudformation",
"output": {
"securityType": "API_KEY"
}
}
}
}
14 changes: 14 additions & 0 deletions amplify/team-provider-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"dev": {
"awscloudformation": {
"AuthRoleName": "writewithme-20190329132152-authRole",
"UnauthRoleArn": "arn:aws:iam::557458351015:role/writewithme-20190329132152-unauthRole",
"AuthRoleArn": "arn:aws:iam::557458351015:role/writewithme-20190329132152-authRole",
"Region": "eu-central-1",
"DeploymentBucketName": "writewithme-20190329132152-deployment",
"UnauthRoleName": "writewithme-20190329132152-unauthRole",
"StackName": "writewithme-20190329132152",
"StackId": "arn:aws:cloudformation:eu-central-1:557458351015:stack/writewithme-20190329132152/4a3a65f0-5260-11e9-94ec-0649507b8a60"
}
}
}
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"aws-amplify": "^1.1.23",
"aws-amplify-react": "^2.3.3",
"aws-appsync": "^1.7.2",
"aws-appsync-react": "^1.2.7",
"glamor": "^2.20.40",
"graphql-tag": "^2.10.1",
"react": "^16.8.6",
"react-apollo": "^2.5.3",
"react-dom": "^16.8.6",
"react-scripts": "2.1.8"
"react-markdown": "^4.0.6",
"react-router-dom": "^5.0.0",
"react-scripts": "2.1.8",
"uuid": "^3.3.2"
},
"scripts": {
"start": "react-scripts start",
Expand Down
6 changes: 6 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet">

<link href="https://fonts.googleapis.com/css?family=Francois+One" rel="stylesheet">

<link href="https://fonts.googleapis.com/css?family=ZCOOL+XiaoWei" rel="stylesheet">

<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
51 changes: 27 additions & 24 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
.App {
text-align: center;
p, span {
font-family: 'Oswald', sans-serif;
}

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
pointer-events: none;
h1, h2, h3, h4, h5 {
font-family: 'Francois One', sans-serif;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
blockquote {
border-left: 4px solid black;
padding-left: 10px;
}

.App-link {
color: #61dafb;
pre {
background-color: #ededed;
padding: 20px;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
h1 {
margin-bottom: 5px;
font-size: 50px;
}

h2 {
font-size: 40px;
margin: 8px 0px 5px;
}

h3 {
font-size: 32px;
}

p {
margin-top: 2px;
margin-bottom: 2px;
}
Loading

0 comments on commit 1656377

Please sign in to comment.