This repository is a Simple WebSocket Chat composed of ServerlessFramework + AWS + Ruby Lang.
- Install serverless and wscat via npm.(wscat is used by testing websocket.)
npm install -g serverless wscat
- Setup your AWS Certificate
export AWS_ACCESS_KEY_ID=<your-key>
export AWS_SECRET_ACCESS_KEY=<your-secret-key>
- Deploy the functions
sls deploy
- Install require packages
npm install
- Install DyanmoDB Local
sls dynamodb install
- Run
sls offline start