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.
The contents of this directory were primarily produced by running create-react-app
. The Default React components were then removed from the src
folder. The src/index.js
file is the entry point for our app. The following npm commands are already supported:
npm start
: Starts Webpack Dev Servernpm test
: Runs Jest Testsnpm run build
: Builds App for Productionnpm eject
: Ejectsreact-scripts
for build customization
Within the src/components/ui
folder you will find a set of pre-built presentation components that utilize matrial-ui
and styled-components
. We will use these components when putting the finishing touches on the application.
- Create React App
- Apollo Client Setup
- Sending a Test Query
- Add
ALL_USERS
Query - Add
TEST_USER
Mutation
- React Configuration
- Authorizing with Github
- Refetching
ALL_USERS_QUERY
- Identifying the user with
ME
Query - Handling Logging Out
- Adding a WebSocket Link
- Persisting Data
- Subscribing to new users
- Incorporating the Main User Interface
- Incorporating UI for Users
- Adding all photos to
ROOT_QUERY
- Posting Photos
- Adding Photo Subscriptions