This is a small project that makes a request to the github API in order to display the issue from the ReactJS repository with some basic information.
This projects uses:
- ReactJS
- NextJS
- Apollo Client
- Graphql
- TypeScript
- Jest
- yarn
- Gitbub Actions to run the tests and lint
This Project was developed using Node v14.17.0
First you will need to install the dependencies by running:
yarn installSince this project fetches the github API, you will need to create a .env.local file on the root of the project. and saved the token as follows:
NEXT_PUBLIC_API_TOKEN=YOUR_TOKEN
Then, run the development server:
yarn devOpen http://localhost:3000 with your browser to see the result.
if the Github's API schema changes in the future, on the package.jsonwe include a couple of commands to pull the schema, as well as to convert them into TypeScript interfaces and types. These are as follow:
schema:download
schema:generate
[ ] Include Pagination using the offset parameter from the Github's API
[ ] Improve Design (Maybe use a UI Framework such as Materialize / ChakraUI)
[ ] Add e2e testing besides the already existing Unit Tests / Expand Coverage