Skip to content
Example realtime serverless application using websockets built on AWS Appysnc.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
bin
dist
mapping-templates
queries
schema
src
.babelrc
.eslintrc.yml
.gitignore
README.md
TODO.md
appsync-realtime-vanillajs.code-workspace
appsync-realtime-vanillajs.sublime-project
package-lock.json
package.json
serverless.yml
webpack.config.js
yarn.lock

README.md

Vanilla JavaScript Realtime Client Built on AWS AppSync

Serverless websockets have arrived on AWS thanks to Appsync. This repository is a simple messaging example and includes:

  • GraphQL API code
  • Deployment using the serverless framework
  • Node.js client
  • Browser client
  • Client build config using webpack

Read the blog post that explains how to run this application.

Example Usage

1. Set up

Install the Serverless Framework plugins used by the project.

$ npm install

Create an .env file and update the AWS_ACCOUNT_ID variable.

export AWS_ACCOUNT_ID=123456789

2. Deploy/Update the AppSync API

$ ./bin/deploy

4. Destroy Stack

$ ./bin/destroy
You can’t perform that action at this time.