Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 1a12262

Browse files
committedOct 9, 2018
Updating to reflect new AppSync React build process
1 parent 4117290 commit 1a12262

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Rehydrated } from 'aws-appsync-react';
1212
import { AUTH_TYPE } from "aws-appsync/lib/link/auth-link";
1313
import { graphql, ApolloProvider, compose } from 'react-apollo';
1414
import * as AWS from 'aws-sdk';
15-
import AppSync from './AppSync.js';
15+
import AppSync from './aws-exports.js';
1616
import AllDestinationsQuery from './Queries/AllDestinationsQuery';
1717
import NewDestinationMutation from './Queries/NewDestinationMutation';
1818

‎README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ Right click your function and select **Deploy**
100100
101101
### Step 3: Create your AppSync API backend
102102
103-
Open the AWS AppSync Console and click **Create API**
104-
Enter a name for your API. Choose *Custom schema* and click **Create**
105-
On the next screen, download your *AppSync.js* config file. Choose the **Web** tab and click **Download**
103+
Open the AWS AppSync Console and click **Create API**. Choose **Build from Scratch** and click **Start**.
104+
Enter a name for your API and click **Create**
105+
106+
On the next screen, scroll down to the "Integrate your app" section download your *aws-exports.js* config file. Choose the **Javascript** tab and click **Download Config**. Move this file into your ./src directory.
106107
107108
![Upload screenshot](images/Step3.1.png)
108109

‎images/Step3.1.png

240 KB
Loading

0 commit comments

Comments
 (0)
This repository has been archived.