Skip to content

Commit 7e331c4

Browse files
committed
more clarification in readme
1 parent 58ae1da commit 7e331c4

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,7 @@ Install dependencies
2626
yarn install
2727
```
2828

29-
Start the server
30-
31-
```
32-
yarn start
33-
```
34-
35-
The project will load at [http://localhost:3000](http://localhost:3000).
36-
37-
### Running the Relay compiler
29+
### Run the Relay compiler
3830

3931
This project uses Relay as its GraphQL client because of its high-quality compiler and great support for persisted queries.
4032

@@ -52,6 +44,18 @@ OG_GITHUB_TOKEN='<your-github-token>' \
5244

5345
You may need to install [watchman](https://facebook.github.io/watchman/), a file watching service. On mac, do `brew install watchman`. On Windows or Linux, follow the instructions at [https://facebook.github.io/watchman/docs/install.html](https://facebook.github.io/watchman/docs/install.html).
5446

47+
48+
### Start the server
49+
50+
Now that we've generated the relay files, we can start the server.
51+
52+
```
53+
yarn start
54+
```
55+
56+
The project will load at [http://localhost:3000](http://localhost:3000).
57+
58+
5559
## Deploying
5660

5761
The project comes with setups for deploying to Google's Firebase, Zeit's Now, Netlify, and Fly.io.

src/Post.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import {lowerCase, sentenceCase} from 'change-case';
2424

2525
import type {Post_post} from './__generated__/Post_post.graphql';
2626

27+
// n.b. no persistedQueryConfiguration for these mutations, because we want to
28+
// add reactions on behalf of the logged-in user, not the persisted auth
2729
const addReactionMutation = graphql`
2830
mutation Post_AddReactionMutation($input: GitHubAddReactionInput!) {
2931
gitHub {

0 commit comments

Comments
 (0)