graphql-codegen-hasura
code-generator plugins for hasura/apollo-gql/typescript development
File Explorer
Download Latest Version (.zip)- favicon.ico
- index.html
- logo192.png
- logo512.png
- manifest.json
- robots.txt
- graphql.schema.json
- config.ts
- gql.ts
- react.ts
- ts.ts
- index.tsx
- apollo-client.ts
- App.css
- App.test.tsx
- App.tsx
- basics.test.ts
- customFragments.ts
- index.css
- index.tsx
- logo.svg
- react-app-env.d.ts
- serviceWorker.ts
- setupTests.js
- .env
- .gitignore
- apollo.config.js
- graphql-codegen-gql.yaml
- graphql-codegen-typescript.yaml
- package-lock.json
- package.json
- README.md
- tsconfig.json
- yalc.lock
- npm-unpublish-snippet.txt
- index.ts
- package-lock.json
- package.json
- README.md
- tsconfig.json
- core-helpers.ts
- core-react.ts
- index.ts
- logging.ts
- postgres.utils.ts
- types.ts
- utils.test.ts
- utils.ts
- package-lock.json
- package.json
- README.md
- tsconfig.json
- index.ts
- package-lock.json
- package.json
- README.md
- tsconfig.json
- index.ts
- package-lock.json
- package.json
- README.md
- tsconfig.json
- configInjectors.ts
- content-manager.ts
- gqlInjectors.ts
- index.ts
- reactInjectors.ts
- sharedInjectors.ts
- tshelperInjectors.ts
- utils.ts
- package-lock.json
- package.json
- README.md
- tsconfig.json
- index.ts
- package-lock.json
- package.json
- README.md
- tsconfig.json
- .gitignore
- .prettierignore
- dev-notes.md
- lerna.json
- LICENSE
- package-lock.json
- package.json
- README.md
- tsconfig-base.json
- tsconfig.json
# Installation Guide
1. Get the code
git clone https://github.com/ablestack/graphql-codegen-hasura
Downloads the entire project code from GitHub to your computer.
cd graphql-codegen-hasura
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
2. npm run build-and-generate
Builds optimized production files.
npm install --save-dev @graphql-codegen/cli @graphql-codegen/introspection @graphql-codegen/typescript @graphql-codegen/typescript-operations @graphql-codegen/typescript-react-apollo
Downloads and installs the libraries listed in package.json.
npm install graphql-codegen-hasura-core;
Downloads and installs the libraries listed in package.json.
npm install --save-dev graphql-codegen-hasura-gql graphql-codegen-hasura-typescript graphql-codegen-hasura-react graphql-codegen-hasura-client-config graphql-codegen-hasura-shared
Downloads and installs the libraries listed in package.json.
npm run bootstrap
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
