In this session, we will build a GraphQL server based on the Movie DB REST API.
- Click the button above to navigate to the CodeSandbox. Fork it to your account by clicking Fork in the top menu.
- That's it! CodeSandbox features HMR, a console, and a test runner. It's pretty awesome. 😍 If you see an error message, don't worry - it's because we haven't built our server yet.
- Ensure you're using at least
node@8andnpm@5 - Clone, install, and run the server
$ git clone https://github.com/mstuart/xoom-graphql-workshop.git
$ cd xoom-graphql-workshop
$ npm install
To get the app up and running (and really see if it worked), run:
$ npm start
$ open http://localhost:4000
If you get stuck at any time, click the sandbox for the exercise you want and fork it. Most steps have a solution branch.
00-tour: Tour of Apollo Server01-resolver-practice: Practice with resolvers01-resolver-practice-solution: Solution: Practice with resolvers02-arguments: Optional and required arguments02-arguments-solution: Solution: Optional and required arguments03-deprecated: Deprecating fields03-deprecated-solution: Solution: Deprecating fields04-deduping: Deduping data fetching04-deduping-solution: Solution: Deduping data fetching05-apollo-data-sources: Apollo data sources06-large-project-structure: Large project structure
- Clone the repo:
git clone https://github.com/mstuart/xoom-graphql-workshop - Install the dependencies:
npm i - Start the server:
npm start. Your server will be running on port 4000. Your GraphQL server is available atlocalhost:4000/graphqland your GraphQL Playground is available atlocalhost:4000/graphql.