This is a living project built to demonstrate serverless concepts
Create a file named credentials.json from the template, and fill in all the secret info. You'll have to get this from Matt.
cp credentials-template.json credentials.json
To develop, install dependencies with NPM and launch webpack dev server:
npm install
npm run webpack-serve
The app is accessible at localhost:3000. The files are automatically recompiled and served from memory as the contents change.
There are no tests at the moment, but there is static code analysis, using eslint. To check your code for issues, run the following command:
npm run lint
Build static files in the public directory with NPM:
npm install
npm run build
After building, you can host the root directory somewhere, like Amazon S3
npm run deploy
This will copy the contents of the public/
directory to s3://chat-demo. In order to work,
you must:
- Have aws cli setup in your path
- Have your AWS cli credentials properly configured
- Have R/W access to the s3://chat-demo bucket
- Serverless JS-Webapp Pub/Sub with AWS IoT
- AWS IoT-based serverless JS-Webapp Pub/Sub demo
- Is it possible to use Socket.io with AWS Lambda?
- Building Facebook Messenger
- MQTT Essentials 1: Introducing MQTT
- MQTT Essentials 2: Publish & Subscribe
- MQTT Essentials 3: Client, Broker and Connection Establishment
- MQTT Essentials 4: Publish, Subscribe & Unsubscribe
- MQTT Essentials 5: Topics & Best Practices
- MQTT Essentials 6: Quality of Service 0, 1 & 2
- Building a Chat Application with Socket.io
- 600k concurrent websocket connections on AWS using Node.js
- How the AWS IoT Platform Works
- How To Build A Serverless Notificaiton System on AWS
- Serverless Service for Serverless Notifications (AWS IoT)
- A chat application without servers
- aws-signature-v4
- AWS S3: Permissions Required for Website Access
- AWS SDK for JavaScript: Bundling Applications with Webpack