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.
Finalize Apollo server
- [Instructor] Before we can run graphQL or graphiQL, we need to finalize our apollo server with express and set up the server to be able to run graphQL. So, let's go ahead and do this. So we need to install a few more dependencies first and these are all main dependencies, they're not dev dependencies, so let's go ahead and do that. NPM install, dash dash save for those that are using older versions of npm. We need body parser, we need graphQL. See, I believe we don't have it yet. So, graphql and graphql tools. And by the way, this is one that I usually make typos, graphql, around this area. So, if you are like me, please pay extra attention in this area 'cause I know I make typos when I type graphql for some reason. Okay, I think that's pretty much what we need. Perfect, so we're good. The next thing we need to create a schema file, and while we're doing this, let's go ahead and start organizing your server folder as well. So, let's create, in the server folder, a new folder and…
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.