This project is set up with Vite
Framework - React with TypeScript
Linting - eslint with Airbnb React + Typescript preset
Testing - Vitest runner with React Testing Library that utilises jsdom
- Node version 14.18+, 16+ (for best experience use
Node v16.15.1
andnpm 8.11.0
) .env
file that containsVITE_GRAPHQL_API_KEY=[YOUR GITHUB API KEY HERE]
with correct github api key
npm install && npm run dev
run tests:
npm run test
this will run the tests and generate a coverage report in ./coverage
folder
open coverage report:
open coverage/index.html
- compartmentalise parts of
App.tsx
in particular table, input, loading and error components - add pagination of query results with cursor
- add polyfills from
core-js
for good measure - add CI/CD for automated deployment and testing
- add husky or github action to run linting on commit or push
- first time using MaterialUI v5 and not sure if using
sx
prop is the best approach (lots of repeated code)