Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/full-stack-serverless/cdk-appsync-chat
Chat back end built with CDK, AWS AppSync, DynamoDB, and Amazon Cognito
https://github.com/full-stack-serverless/cdk-appsync-chat
Last synced: 2 months ago
JSON representation
Chat back end built with CDK, AWS AppSync, DynamoDB, and Amazon Cognito
- Host: GitHub
- URL: https://github.com/full-stack-serverless/cdk-appsync-chat
- Owner: full-stack-serverless
- Created: 2020-08-14T21:21:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-17T23:20:53.000Z (over 4 years ago)
- Last Synced: 2024-08-07T08:15:08.176Z (6 months ago)
- Language: TypeScript
- Size: 232 KB
- Stars: 36
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](header.jpg)
## 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
```sh
git clone https://github.com/full-stack-serverless/cdk-appsync-chat.git
```2. Change into the `cdk-appsync-chat` directory
3. Install dependencies in main folder:
```sh
npm install# or
yarn
```3. Deploy to AWS
```sh
cdk deploy
```Once the project has been deployed, you'll be given the resources needed to configure the client-side React application.
```sh
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
```sh
git clone https://github.com/full-stack-serverless/chat-app.git
```3. Change into the client directory and install dependencies:
```sh
cd chat-appnpm install
# or
yarn
```4. Open __src/aws-exports-example.js__ and update with the outputs from CDK.
5. Rename __aws-exports-example.js__ to __aws-exports.js__.
5. Run the app
```sh
npm start
```