Github Timeline Generator is a web app that, given a username, generates a timeline of repositories created by that user. It has filtering features, such as limiting the number of repositories displayed and sorting by date.
- React.js;
- React Testing Library (Automated Tests);
- React Toastify
- Octokit/GraphQL (Github GraphQL API connection);
- Tailwind CSS;
- SASS;
Note: it requires yarn or npm installed
Initial steps
git clone https://github.com/ruifernandees/github-timeline-generator.git
cd github-timeline-generator
# Install all dependencies
yarn install
Set the Environment Variables
- Create a personal token on Github (it can have no permission, only public permissions): https://github.com/settings/tokens
- Create a .env file on the project root
- Set the following variable in the .env file:
REACT_APP_API_KEY=your_github_personal_token
Run server
# Start the server
yarn start
Run tests
# Start the server
yarn test