Skip to content

machy44/github-profiles-app

Repository files navigation

USAGE

  1. create .env file in root of the project and create GITHUB_AUTH_TOKEN variable
  2. assign valid github user token to GITHUB_AUTH_TOKEN variable (example: GITHUB_AUTH_TOKEN={github_token})
  3. run yarn start:dev to start dev server

yarn start:dev

yarn build

  • script for production build

project structure

  • 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/).

NOTES

project setup

styles

  • I am using styled-system to get Layout and theme which will enable me to do responsive design.

graphql setup

github api docs link -> https://docs.github.com/en/graphql