Search an Star Wars character using an input text.
- Fetch the characters from the
https://swapi.dev/api/people - Render a list of star wars characters
- When the user type a new value in the field text the list is updated
- Debounce the requests on typing
Clone the project
git clone https://github.com/Caivan/swapi-search-frontend.gitGo to the project directory
cd swapi-search-frontendInstall dependencies
npm installStart the server
npm run devGo to
http://localhost:5173/
GET /api/people
https://swapi.dev/api/people
GET /api/people
https://swapi.dev/api/people?search
| Parameter | Type | Description |
|---|---|---|
search |
string |
String to search |