This repository has been created as a part of the YouTube video: Build a Realtime Web Chat and deploy to AWS - TypeScript, Node, React & TailwindCSS
It is a backend part of a simple web chat application using API Gateway Webosockets with Serverless Framework Infrastructure as a Code to easily deploy it to AWS.
- AWS CLI installed and configured
serverless-framework
node.js
Run:
npm install
or
yarn install
Run:
serverless deploy
MIT.
- Download Aws cli, Node.js, VSCode, Serverless framework, Websocat
- Check if aws cli is installed correctly
aws --version
- Configure Aws cli with the command
aws configure
you can refer to this video: Youtube - Run command
serverless deploy
- Now the cli should give you the endpoint for connection to the websocket example
wss://xyz.amazon.aws.com/dev
Note this endpoint we will require this to connect the frontend with backend.