shortjared / cdk-appsync-react-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CDK Appsync Transformer React Demo

All commands assume you have proper aws credentials

A simple CDK & React example to deploy an AppSync API with Cognito as auth. Uses AWS Amplify schema directives to transform the graphql schema.

What's in the box

AWS Resources

  • Cognito User Pool
  • Cognito Identity Pool
  • AppSync API
    • AppSync Resolvers
    • AppSync Datasources
  • DynamoDB Table
  • IAM Roles

Schema

To deploy as is

  1. Clone The Repository
git clone https://github.com/kcwinner/cdk-appsync-react-demo.git
cd cdk-appsync-react-demo
  1. Initialize The Project
npx projen
  1. Test And Deploy
npm run test
npm run deploy
  1. Generate Exports && GraphQL Types
cd frontend
yarn run generate-exports
yarn run codegen
  1. Run the frontend locally
yarn run dev

References

About

License:Apache License 2.0


Languages

Language:TypeScript 72.8%Language:JavaScript 15.1%Language:CSS 7.5%Language:HTML 4.6%Language:Shell 0.1%