/ng-athens-graphql-demo

Angular Athens meetup 11: Put GraphQL in your toolbox

Primary LanguageTypeScript

Getting stated

  1. Clone this repo

  2. Get a personal access token with public_repo and user scopes enabled

  3. Find and replace <YOUR-GH-TOKEN> with your token

IMPORTANT: Do not share your token. Your token should be treated as a password. Do not store it or hard-coded in a SPA.

  1. npm install

  2. ng serve

  3. visit http://localhost:4200

Useful commands

To run code generation again manually:

npm run generate

To run start codegen in watch mode:

npx graphql-codegen --watch "src/graphql/**/*.graphql"

Info

ng add apollo-angular