Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/enghwa/chat-websocket-fargate
- Owner: enghwa
- License: apache-2.0
- Created: 2019-06-05T14:38:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:46:37.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T16:33:41.544Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.32 MB
- Stars: 19
- Watchers: 4
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```bashnvm 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
```bashnpx cdk deploy --require-approval never
```
### remove all resources:
```bash
npx cdk destroy
```