React + TypeScript app using the GitHub V4 GraphQL API.
You will need to generate a personal access token to connect to the GitHub GraphQL API.
To do this navigate to https://github.com/settings/tokens/new
- and generate key for public usage
Replace your NEXT_PUBLIC_ACCESS_TOKEN with your token and rename local.env file to .env.local.
Run the development server:
npm i
# then
npm run devOpen http://localhost:3000 with your browser to see the result.
Husky runs liters and unit tests
To make graphql-codegen to work configure local.codegen.yml file with your github access token and rename it to just codegen.yml
App is built on Next.js with Vercel deployment, live version can be found: https://github-search-miloszmos.vercel.app/
master branch is deployed automatically when merging feature branches, each feature branch can be tested separately thanks to Vercel atomic deployment
App has Jest with React-Testing-Library running jest tests locally:
npm run test
# or
npm run test:watch # for --watch modeApp uses Styled Components 💅
You can check available components with storybook
npm run storybookOpen http://localhost:6006 with your browser to see components library.