Live coding session presented in the GraphQL BKK meetup on 20/03/2019.
yarn install
yarn start
- Install
create-react-app
create-react-app
graphqlbkk --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 🎉