Skip to content

Instantly share code, notes, and snippets.

@dabit3
dabit3 / chat-api.ts
Last active August 21, 2020 18:28
Example AppSync GraphQL API
/* Imports from CDK */
import * as appsync from '@aws-cdk/aws-appsync';
import * as db from '@aws-cdk/aws-dynamodb';
/* Creating the API */
const api = new appsync.GraphQLApi(this, 'Api', {
name: 'my-chat-app', // API name
schemaDefinition: appsync.SchemaDefinition.FILE, // Type of schema
schemaDefinitionFile: './schema.graphql', // location of schema
authorizationConfig: { // authorization config
@dabit3
dabit3 / App.js
Last active September 24, 2019 05:07
AWS Amplify Sumerian Setup
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import { withAuthenticator } from 'aws-amplify-react';
import { XR } from 'aws-amplify';
import sceneConfig from './sumerian-exports';
XR.configure({ // XR category configuration