From the course: Learning AWS Amplify (2020)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Mobile app and AppSync client - Amazon Web Services (AWS) Tutorial
From the course: Learning AWS Amplify (2020)
Mobile app and AppSync client
- [Instructor] Okay, so AWS is set up, now we have to set up our Xcode project to be able to use AppSync. And the first thing we need to do is add a Podfile. I still have my Podfile open up in my editor. I'll add a new Podfile on line 12. So I'll type pod AWSAppSync. And save that and then in the terminal, run pod install again. This will install the AWS AppSync coco pod to our project and then we can start using it in our code to communicate with the server. Now that we have the coco pod installed in our project, we need to update our code to use it. So back in Xcode, I want to be able to create an AppSync client to run all the mutations against the server. So in the AppDelegate, after line 10, I'm going to type import AWSAppSync and I also want to create a property to store the AppSync client so we can access it from other places in our code so on line 16, I'll type var asClient and make it of type AWSAppSyncClient…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.