azinit / example-graphql-react-typescript

Lightweight example of react app with graphql and ts support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Lightweight example of react app with graphql and ts support


Languages

Language:TypeScript 88.1%Language:SCSS 5.7%Language:HTML 5.0%Language:Shell 0.7%Language:JavaScript 0.5%