That Very Awesome Serverless Site - demo serverless site showing count of page viewers in realtime. Check out the walkthrough
- Node.js v6.5.0 or greater
- An AWS account. You can sign up for a free account here
- A Pusher account. Sign up here
- Install the serverless framework:
npm install -g serverless
- Run
serverless install --url https://github.com/shalvah/tvass
to install the service - Install dependencies:
cd tvass && npm install
- Create a pusher app and obtain your app keys from the dashboard. Replace the
PUSHER_*
environment variables in theserverless.yml
file with your app credentials. $. Deploy:serverless deploy
(You'll need to configure the serverless CLI with your AWS credentials first; follow these instructions) - Enable Channel existence webhooks for your Pusher app (Dashboard > Webhooks). Copy the POST URL printed to the console after running
serverless deploy
and paste in the text field as the webhook URL.
- Pusher - APIs to enable devs building realtime features
- the serverless framework - CLI tool for building serverless apps
- AWS Lambda Functions - serverless cloud provider
- Node.js