Skip to content

Project which allows to search for trending repositories in GitHub

Notifications You must be signed in to change notification settings

rafaelfl/gitrend

Repository files navigation

GiTrend

Licença

If you like this project then give it a Github star! 🤩⭐

About

Project which allows to search for trending repositories in GitHub

Table of Contents

=================


💻 Project Description

The project was developed to allow the search of trending repositories in GitHub. It was structured to show the configuration of a React.js project using Husky, lint-staged, eslint, prettier and commitlint with conventional commits. The project also shows how to implement unit and integration tests with React Testing Library. Redux was used as state manager with Redux Toolkit and Redux Thunk for implementing asynchronous communication middlewares in order to consume the GitHub API.

Live preview

Screenshots:

Main screen Main screen with the favorites filter activated
Responsive main screen with language menu Responsive main screen with text search

⚙️ Prerequisites

Before starting, you need Node.js, Yarn and Git installed and configured.

# Clone this repository
$ git clone https://github.com/rafaelfl/gitrend

# Enter in the project folder in terminal/cmd
$ cd gitrend

🚀 Installation

After installing the tools and the source code, you can install the dependencies and run the project.

# Install dependencies
$ yarn install

# Run the project using the following syntax
$ yarn start

The application will be available on http://localhost:3000.

Some interesting commands:

  • yarn build - build the page for deploying
  • yarn test - run the unit and integration tests
  • yarn test:cov - run the tests and show the coverage report
  • yarn lint - run the linter to identify some problems in code
  • yarn lint:fix - run the linter to identify and fix problems in code
  • yarn prettier - run the prettier formatter

Furthermore, the Husky is configured to verify commit messages incompatible with the "Conventional Commits" standard, as well as to run the linter and prettier in the code.


🛠 Technologies


👨‍💻 Author


Rafael Fernandes Lopes

Developed with 💜 by Rafael Fernandes Lopes

Linkedin Badge