This is a very tiny web app that allows you to search for your favorite, or least favorite, star wars character. It uses SWAPI as an API endpoint for your query. It will return data from SWAPI for the character search. Data includes the characters name, gender, hair color and eye color. A user can search for a character with any letters and then filter results by gender. With the current implementation the app only returns the first 10 results from SWAPI.
This project uses continuous deployment via Netlify to deploy from the master
branch. Check it out here.
- jQuery
- Vanilla JavaScript
- CSS (from scratch)
Built in
This app is using the following API endpoint at SWAPI, where ${searchValue}
is the user's search query. You can go to the link in your browser to look at the details.
https://swapi.co/api/people/?search=${searchValue}
At this time there are no tests.
It is pretty easy to get off the ground with this website.
- Search for your favorite character
- Peruse the results
- Filter the results by gender if desired.
- Search again to your heart's content!
- Build out the ability for more than 10 results to come back from SWAPI (Pagination on SWAPI's end)
- Write tests!
Feel free to contribute! Just submit a PR and I'll take a look.
Thanks to Soylent for powering me through this project.
MIT License is applicable here.
MIT © David A. Lindahl