/StarWars-PlanetsSearch

[PT-BR] Site que consome a API The Star Wars para exibir uma lista de planetas, utilizando Context API e Hooks. [EN] Website that consumes The Star Wars API to display a list of planets, utilizing Context API and Hooks.

Primary LanguageJavaScript

[PT-BR] Star Wars Planet List

Este projeto é um site que consome a API The Star Wars para exibir uma lista de planetas do universo de Star Wars. Utiliza a Context API e Hooks para controlar os estados globais e fornecer funcionalidades de filtragem. A aplicação também inclui testes desenvolvidos utilizando o React Testing Library.

Funcionalidades

  • Exibir uma lista de planetas do universo de Star Wars.
  • Filtrar planetas com base em critérios diferentes.
  • Utilizar a Context API e Hooks para gerenciamento de estados globais.
  • Testes desenvolvidos utilizando o React Testing Library.

Tecnologias Utilizadas

  • React
  • Context API
  • Hooks
  • React Testing Library

Como começar

Para começar com o projeto, siga os passos abaixo:

  1. Clone este repositório em sua máquina local.
  2. Instale as dependências executando npm install no diretório do projeto.
  3. Inicie a aplicação com npm start.
  4. Acesse o site em seu navegador através de http://localhost:3000.

Testes

Os testes deste projeto foram desenvolvidos utilizando o React Testing Library. Para executar os testes, utilize o comando npm test.

Contribuição

Contribuições para este projeto são bem-vindas. Se você encontrar algum problema ou tiver sugestões de melhorias, abra uma issue ou envie um pull request.

Licença

Este projeto não possui uma licença específica, pois foi criado para exercitar os conhecimentos com Context API e Hooks no React.

[EN] Star Wars Planet List

This project is a website that consumes The Star Wars API to display a list of planets from the Star Wars universe. It utilizes Context API and Hooks to manage global states and provide filtering functionality. The application also includes tests developed using React Testing Library.

Features

  • Display a list of planets from the Star Wars universe.
  • Filter planets based on different criteria.
  • Utilize Context API and Hooks for global state management.
  • Tests developed using React Testing Library.

Technologies Used

  • React
  • Context API
  • Hooks
  • React Testing Library

Getting Started

To get started with the project, follow the steps below:

  1. Clone this repository to your local machine.
  2. Install the dependencies by running npm install in the project directory.
  3. Start the application using npm start.
  4. Access the website in your browser at http://localhost:3000.

Testing

Tests for this project were developed using React Testing Library. To run the tests, use the command npm test.

Contribution

Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project does not have a specific license as it was developed to practice knowledge of Context API and Hooks in React.