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.
- 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.
- React
- Context API
- Hooks
- React Testing Library
Para começar com o projeto, siga os passos abaixo:
- Clone este repositório em sua máquina local.
- Instale as dependências executando
npm install
no diretório do projeto. - Inicie a aplicação com
npm start
. - Acesse o site em seu navegador através de
http://localhost:3000
.
Os testes deste projeto foram desenvolvidos utilizando o React Testing Library. Para executar os testes, utilize o comando npm test
.
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.
Este projeto não possui uma licença específica, pois foi criado para exercitar os conhecimentos com Context API e Hooks no React.
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.
- 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.
- React
- Context API
- Hooks
- React Testing Library
To get started with the project, follow the steps below:
- Clone this repository to your local machine.
- Install the dependencies by running
npm install
in the project directory. - Start the application using
npm start
. - Access the website in your browser at
http://localhost:3000
.
Tests for this project were developed using React Testing Library. To run the tests, use the command npm test
.
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.
This project does not have a specific license as it was developed to practice knowledge of Context API and Hooks in React.