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.git
Go to the project directory
cd swapi-search-frontend
Install dependencies
npm install
Start the server
npm run dev
Go 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 |