git clone https://github.com/mikeamarkey/portfolio.git
npm install
OR yarn
NOTE: This project is currently for private use and not production ready. These .env variables are injected into the browser, so make sure to handle your github key properly before deploying anything!
// .env
SNOWPACK_PUBLIC_GITHUB_API_KEY=yourkeyhere
npm run start
OR yarn start
start
: starts the local dev server
test
: runs the tests
lint
: runs the linters
build
: creates a snowpack build
profile
├── public
└── src
├── components
├── graphql
│ ├── apollo.ts // apollo client
│ ├── helpers.ts // helper functions for handling apollo
│ └── queries.ts // graphql queries
├── tests
│ ├── apollo.test.tsx // tests using apollo
│ ├── mocks.ts
│ └── react.test.tsx // strictly react tests
└── types
├── api.ts // types related to api
└── models.ts // general types used in app