Skip to content

azinit/example-graphql-react-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bf72654 · Oct 12, 2020

History

77 Commits
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 11, 2020
Oct 10, 2020
Oct 12, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020

Repository files navigation

React App with graphql + ts

React app example with data fetching by graphql

Actual implementation for 2020

demo.gif

Tech stack

  • UI: react, antd, classnames
  • Lang: typescript (3.7+)
  • Fetching: graphql, apollo-client (3+)
    • API Codegen: graphql-codegen
  • Routing: react-router

Usage

Start local stand

# install deps
npm i
# run stand
npm run start

Generate api

# update local api once
npm run api:gen
# update by changes (watch)
npm run api:gen--watch

(IN PLAN) Run linter

npm run lint:fix

(IN PLAN) Run tests

# Run all tests
npm run test
# Run unit tests
npm run unit
# Run lint tests
npm run lint

Structure

Recommendations

FAQ