You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: amplifycli_react_tutorial.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ You can now use `amplify publish` to build and publish your app again. This time
70
70
71
71
# Add Analytics and Storage
72
72
73
-
A login screen is nice but now is the time to add some features, like tracking analytics of user behavior and uploading/downloading images in the cloud. Start by running `amplify add analyitcs` in your project. Then run `amplify add storage` and select the S3 provider. When complete run `amplify push` and the cloud resources will be created.
73
+
A login screen is nice but now is the time to add some features, like tracking analytics of user behavior and uploading/downloading images in the cloud. Start by running `amplify add analytics` in your project. Then run `amplify add storage` and select the S3 provider. When complete run `amplify push` and the cloud resources will be created.
74
74
75
75
Edit your `App.js` file in the React project again and modify your imports so that the `Analytics` and `Storage` categories are included as well as the `S3Album` component, which will be used for uploading and downloading photos.
76
76
@@ -124,7 +124,7 @@ Now that your application is setup, the final piece is to add a backend API with
124
124
-`@connection` for specifying relationships between `@model` object types
125
125
-`@searchable` to stream `@model` types into Amazon Elasticsearch
126
126
127
-
To get started run `amplify add api` and select `GraphQL`. When prompted choose `Amazon Cognito User Pools` and the project will leverage your existing Auth setup. Select **No** when asked for an `annotated schema` and **Yes** when asked about `guided schema creation`.
127
+
To get started run `amplify add api` and select `GraphQL`. When prompted choose `Amazon Cognito User Pool` and the project will leverage your existing Auth setup. Select **No** when asked for an `annotated schema` and **Yes** when asked about `guided schema creation`.
128
128
129
129
The guided creation will give some default schemas that are pre-annotated for you for learning purposes. The following steps take you through choosing `Single object with fields` but feel free to revisit these steps later in another project. If you choose this option you'll see the following annotated schema in your text editor:
130
130
@@ -136,7 +136,7 @@ type Todo @model {
136
136
}
137
137
```
138
138
139
-
This is the GraphQL schema that will be deployed to AWS AppSync. If you're familiar with GraphQL you could rename/add fields & types, but note the client code would need to change as well. When you're ready press `enter` in the CLI and then `No` on the next question followed by `amplify push`.
139
+
This is the GraphQL schema that will be deployed to AWS AppSync. If you're familiar with GraphQL you could rename/add fields & types, but note the client code would need to change as well. When you're ready press `enter` in the CLI followed by `amplify push`.
140
140
141
141
After the deployment is done open your `App.js` again and update the import to include both the `API` category and `graphqlOperation` method:
142
142
@@ -274,7 +274,7 @@ In your project directory, open `./amplify/backend/function` and you will see th
274
274
275
275
# Testing your Function
276
276
277
-
Amplify CLI supports local testing of Lambda functions. Run `amplfiy status` to get the resource name of the Lambda function created earlier, and execute:
277
+
Amplify CLI supports local testing of Lambda functions. Run `amplify status` to get the resource name of the Lambda function created earlier, and execute:
0 commit comments