Welcome to the client portion of the workshop! For the morning session, we will be building a React app that pulls a list of movies, filters them by type, and allows you to favorite them after you've been logged in. The app is backed by Create React App and Apollo Client.
index.js
: Where we set up Apollo Clientcomponents/
: All of the React components that you will connect to Apollodata.js
: Seed data powering the components before we switch to GraphQLApp.js
: The top-level App component. You won't need to modify this file.index.css
: Some random CSS. You won't need to modify this file.
- 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. 😍
00-start
: Your starting point01-apollo-client
: Setting up Apollo Boost and React Apollo02-queries
: Writing Query components03-pagination
: Writing Query components with Pagination04-login
: Writing Mutation components for login & authentication05-mutations
: Writing Mutation components & optimistic UI06-final
: Local state management with apollo-link-state
- I didn't complete the last exercise and want to catch up: No worries! Each branch is its own CodeSandbox so everyone can go at their own pace. To check out the completed solution for your exercise, just click the CodeSandbox links above.
- Clone the repo:
git clone https://github.com/apollographql/fullstack-workshop-client
- Install the dependencies:
npm i
- Start the server:
npm start