Submitted by: Gerald Akorli
This web app: Discover dogs beyond your wildest imagination
Time spent: 15 hours spent in total
The following required functionality is completed:
- Clicking a button creates a new API fetch request and displays at least three attributes from the returned JSON data
- Only one item/API call is viewable at a time
- API calls appear random to the user
- At least one image is displayed per API call
- Clicking on a displayed value for one attribute adds it to a displayed ban list
- Attributes on the ban list prevent further images/API results with that attribute from being displayed
The following optional features are implemented:
- Multiple types of attributes can be added to the ban list
- Users can see a stored history of their previously viewed items from their session
The following additional features are implemented:
- List anything else that you added to improve the site's functionality!
GIF created with Kap for macOS
Describe any challenges encountered while building the app. I faced an issue calling the API when I filtered by ban list. I had to create a checkInfo function filter by ban list. Then use recursion to call the API again when the API returned an empty array.
Copyright 2023 Gerald Akorli
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.