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-scriptsfor 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_USERSQuery - Add
TEST_USERMutation
- React Configuration
- Authorizing with Github
- Refetching
ALL_USERS_QUERY - Identifying the user with
MEQuery - 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