PhotoShare Client is the main front-end exercise for GraphQL Workshop. In this exercise, students build a website using the Apollo Client with Apollo React.
- Starting Point (files)
- Add
ALL_USERS
Query (diff) (files) - Display the User list (diff) (files)
- Add
ADD_FAKE_USERS
Mutation (diff) (files) - Update the local cache with new users (diff) (files)
- Setting the fake user count (diff) (files)
- Environment Variables (diff) (files)
- Adding the React Router (diff) (files)
- Obtaining the Github Code (diff) (files)
- Adding
GITHUB_AUTH_MUTATION
(diff) (files) - Adding Authorization Header (diff) (files)
- Identifying the user with
ME
Query (diff) (files) - Handling Logging Out (diff) (files)
- Adding a WebSocket Link (diff) (files)
- Persisting Data (diff) (files)
- Subscribing to new users (diff) (files)
- Incorporating the Main User Interface (diff) (files)
- Incorporating the UserList UI Component (diff) (files)
- Adding Fake User Authorization (diff) (files)
- Incorporating the Auth UI Component (diff) (files)
- Modify the
httpLink
for uploads (diff) (files) - Routing to the Post Photo Form (diff) (files)
- Incorporating the Post Photo Form (diff) (files)
- Adding the
POST_PHOTO_MUTATION
(diff) (files) - Adding
ALL_PHOTOS
Query (diff) (files) - Adding Photo Subscriptions (diff) (files)
- Incorporating the PhotoList UI Component (diff) (files)