Skip to content

Desenvolvimento de lista de planetas de Star Wars com filtros usando Context API e Hooks para estados globais. Requisição à API, filtragem por texto, valores numéricos, remoção de filtros e ordenação.

Notifications You must be signed in to change notification settings

luccarendall/starwars-planets-search

Repository files navigation

The project's objective was to develop a list of Star Wars universe planets with filters using Context API and Hooks to manage global states.

starwars-tatooine

The project's development included the following five main functionalities:

1 - Create a request to the /planets endpoint of the Star Wars API and populate a table with the returned data, except for the residents' column.

2 - Filter the table using a text input field, displaying only the planets whose names include the entered text.

3 - Create a comparison filter for numeric values (greater than, less than, or equal to).

4 - Create an 'X' button next to each generated filter, which, when clicked, removes the numeric value filter and undoes the table filtering.

5 - Enable column sorting in ascending or descending order.

Access the application via the link:

https://luccarendall.github.io/starwars-planets-search/

Libraries / API

  • React
    • React Router
    • React Hooks
    • React Context API
  • I used the fetch method to call the API.
  • The API used in the project was:
    Swapi Planets API

Usage Demonstration

Run Locally

  1. Clone the repository
  2. Install dependencies with npm install
  3. Navigate to the project folder and run npm start
  4. Your project is now running at: http://localhost:3000/

Author


@luccarendall

About

Desenvolvimento de lista de planetas de Star Wars com filtros usando Context API e Hooks para estados globais. Requisição à API, filtragem por texto, valores numéricos, remoção de filtros e ordenação.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published