Using the Github GraphQL API. The project is live here
Generate the Github Repository tab for any user with only their username
The entry files:
- HTML:
index.html
- CSS:
css/index.css
- JS:
scripts/index.js
Parcel was used as the bundler for this project.
To add your GITHUB_TOKEN, create an .env
file using the .sampleenv
file (as a sample) and input your personal token.
git clone https://github.com/deolaj/github-replica.git
cd github-replica
yarn install
To run the local server,
yarn start
The prettier
and eslint
libraries are used for formating and error checking. Install their corresponding vscode extensions to use with VSCode.
To generate build files for production,
yarn build
Tests were written using Cypress. Test files are in cypress/integration/
.
To run tests, ensure your development server is running and run
yarn test
Then select the test to run in the Cypress test runner.