- create .env file in root of the project and create GITHUB_AUTH_TOKEN variable
- assign valid github user token to GITHUB_AUTH_TOKEN variable (example: GITHUB_AUTH_TOKEN={github_token})
- run yarn start:dev to start dev server
- will start development server on http://localhost:8080
- script for production build
- api -> folder where graphql queries, api types and apollo client are defined
- theme -> inside theme there is layout, typography and theme defined. I used styled-system (https://styled-system.com/) and emotion.js for styling. Maybe ui would be better name for this folder
- common -> inside common folder are base components used for constructing more complex components
- components -> components which are using common, theme folder and semantic ui components (https://react.semantic-ui.com/).
- setup react, typescript, babel
- setup prettier https://glebbahmutov.com/blog/configure-prettier-in-vscode/
- add css files loader to webpack
- setup env variables in webpack- https://www.npmjs.com/package/dotenv-webpack
- minimize svg in webpack https://iamakulov.com/notes/optimize-images-webpack/
- I am using styled-system to get Layout and theme which will enable me to do responsive design.
github api docs link -> https://docs.github.com/en/graphql
- check out https://github.com/MichalLytek/type-graphql for graphql typings