This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |