- run
npm iin the terminal - create a
.env filewith the following optionswhere:REACT_APP_GITHUB_ACCESS_TOKEN=XXXXXXXXXXXX- *REACT_APP_GITHUB_ACCESS_TOKEN: Is your github access token.
- run
npm startto run the server in development mode or runnpm run buildto build the server and then server it with another tool.
- Run
npm i - Run
npm test
- Since I've used React i choose jest for testing.
- Typescript for type-safe and better scalability
- Apollo client as "just go with it" library for graphql request.
- ChakraUI for fast prototyping in react. Through this library adds a complexity layer to the testing if youre not used to it.
- Add E2E testing.
- If click on a topic that is already on the history go to that index (or move it to the end of the history) instead of adding it again.
- ChrakraUI could be troublesome when testing. Its provider is not compatible with jest and its useToas needs to be mocked when in a testing environment (see
utils/useToast.tsimplementation).