Skip to content

lustan3216/cdk-appsync-chat

 
 

Repository files navigation

CDK AppSync Chat

This CDK project deploys an AppSync API, Amazon DynamoDB tables, and an Amazon Cognito User Pool configured to create the infrastructure for a chat application. It is paired with a React front-end for a full-stack serverless project.

Deploying the back end

  1. Clone the repo
git clone https://github.com/full-stack-serverless/cdk-appsync-chat.git
  1. Change into the cdk-appsync-chat directory

  2. Install dependencies in main folder:

npm install

# or

yarn
  1. Deploy to AWS
cdk deploy

Once the project has been deployed, you'll be given the resources needed to configure the client-side React application.

Outputs:
CdkAppsyncChatStack.UserPoolClientId = 4tojuqrgrctupmj28812nmgi2t
CdkAppsyncChatStack.UserPoolId = us-east-1_vS2Qv9tob
CdkAppsyncChatStack.GraphQLAPIURL = https://w6eiaujspbbcvovbqzn2w4zxhu.appsync-api.us-east-1.amazonaws.com/graphql

Deploying the front end

  1. Clone the client application
git clone https://github.com/full-stack-serverless/chat-app.git
  1. Change into the client directory and install dependencies:
cd chat-app

npm install

# or

yarn
  1. Open src/aws-exports-example.js and update with the outputs from CDK.

  2. Rename aws-exports-example.js to aws-exports.js.

  3. Run the app

npm start

About

Chat back end built with CDK, AWS AppSync, DynamoDB, and Amazon Cognito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.1%
  • JavaScript 4.9%