Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enghwa/chat-websocket-fargate

Build a Nodejs chat room app on AWS Fargate + redis using AWS CDK.
https://github.com/enghwa/chat-websocket-fargate

Last synced: 5 days ago
JSON representation

Build a Nodejs chat room app on AWS Fargate + redis using AWS CDK.

Awesome Lists containing this project

README

        

## Architecture:

![Architecture](ecsfargatechat.png)

Current CDK script uses a dockerize Redis running on Fargate, it is not durable or HA.
Challenge: Change this CDK code to adopt Amazon ElastiCache!

### get nodejs
```bash

nvm install 8.12.0

nvm alias default v8.12.0
```

### install node modules
```bash
npm install
npm run build
```

### show the aw resources that cdk will create

```bash
npx cdk diff
```

### make sure your aws cli is setup (eg: aws cloudformation), deploy the aws resources
```bash

npx cdk deploy --require-approval never

```

### remove all resources:
```bash
npx cdk destroy
```