Project of a GitHub portfolio app. The goal of this project is to create an app that connects to the GitHub API, and lists all the public repositories and the last commits of an user.
- lists all public repositories and the 20 last commits of an user;
- search field for filtering the commits by the term inserted into the field.
Download this repository to get you a copy of the project and follow the instructions bellow to run it on your local machine for development and testing purposes.
$ npm install
$ npm start
$ npm run test
or
$ npm test
Used as a way to output variables in the string with the new syntax ${NAME}:
let reporitories = await fetch(`https://api.github.com/users/${user}/repos`)
let url = `https://api.github.com/repos/${user}/${this.props.repository}/commits`
Functions with one line statement:
.then(
(result) => result,
...
)
Used for object-oriented programming (OOP) with components that interact with each other to bring out the solution:
class RepositoryCard extends React.Component {
...
}
export default RepositoryCard;
- Reactjs - JavaScript library
- react-test-renderer - React Testing Library
- enzyme - Testing Library
- Bootstrap - Web Framework
- contains the possibility to filter the order of the repositories that are shown (by stars, name, etc).
- Marerial - UI as web framework.
- lists all public repositories and the 20 last commits of an user;
- search field for filtering the commits by the term inserted into the field.
- Andreia Trianon - andreiatrianon