Live coding session presented in the GraphQL BKK meetup on 20/03/2019.
yarn install
yarn start
- Install
create-react-app create-react-appgraphqlbkk --typescript- Explore the Github API
- Create a token in https://github.com/settings/tokens
- Add packages
react-apollo apollo-boost graphql - Endpoint https://api.github.com/graphql
- Display my username
- Fetch organization by name and display repositories with stars count
- Add interfaces manually
- Github Schema Workaround https://raw.githubusercontent.com/octokit/graphql-schema/master/schema.graphql
- Install
graphql-code-generator graphql-codegen-typescript-common graphql-codegen-typescript-client graphql-codegen-typescript-react-apollo - Add types with graphql-code-generator
- Show the generator features
- Done 🎉