From the course: Learning Apollo

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Initial Apollo client setup

Initial Apollo client setup

From the course: Learning Apollo

Start my 1-month free trial

Initial Apollo client setup

- [Instructor] Now that we have a base React application, let's go ahead and set up the Apollo client to work with our application. So the first thing I want you to do, and I'm working in via Scout here so I have access to my terminal, so if you're working in a different editor, feel free to get the terminal up and running. So let's go ahead and stop our application. You can do this by doing Control C. And then what we'll do is install the Apollo client. So the way I'm going to do this is do NPM install, and then whatever the version you're using, save still works, but the most recent version of NPM actually you don't have to do save anymore, but I'll still do it if you are using an old version of NPM, so save. React. Apollo. Okay. So while it's doing that, let's go ahead and refactor some of the stuff that we have in here. So the first thing that I want you to do... Let's minimize our terminal here, and get a little bit more screen in state, like so. The first thing I want you to do…

Contents