A Star Wars Character Search
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.
Deployment
This project uses continuous deployment via Netlify to deploy from the master
branch. Check it out here.
Tech/framework used
- jQuery
- Vanilla JavaScript
- CSS (from scratch)
Built in
API Endpoint
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}
API Reference
Tests
At this time there are no tests.
How to use?
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!
Future TODO
- Build out the ability for more than 10 results to come back from SWAPI (Pagination on SWAPI's end)
- Write tests!
Contribute
Feel free to contribute! Just submit a PR and I'll take a look.
Credits
Thanks to Soylent for powering me through this project.
Anything else that seems useful
License
MIT License is applicable here.
MIT © David A. Lindahl