yarn install
cd swapi-graphql
yarn install
star wars api graphql server is from this repo https://github.com/vnovick/reason-graphql-demoapp
For Github REST api
- in
fetchRepos.re
changeTOKEN
to actual github token
For StarWars GraphQL api
cd swapi-graphql
to run servernpm start
- change
http://localhost:55989
inGraphQLAppRoot.re
to whatever port you are running
For Github GraphQL api
- rename
graphql_schema_github
tographql_schema
- go to
GithubBoard.re
and uncomment it - put your github token (Settings -> Github Tokens) in
GraphQLAppGithub
- put
<GithubBoard />
in Provider component inGraphQLAppGithub
- comment out
StarWarsBoard.re
- substitute
<StarWarsBoard />
for adiv
inGraphQLAppRoot
Slides are available here: https://slides.com/vladimirnovick/reasonable-graphql