Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.04 KB

File metadata and controls

67 lines (48 loc) · 1.04 KB

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