Skip to content

fortuneiyoha/Advice-Generator-App

Repository files navigation

Frontend Mentor - Advice generator app solution

This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Generate a new piece of advice by clicking the dice icon

Screenshot

website preview

Links

My process

Technology Used

What I learned

  1. Handling API JSON Data: I explored using the Fetch API to retrieve and process JSON data from an api dynamically.
  2. Fetch API Cache Option: I utilized the cache option of the Fetch API to override the default API behavior and request a fresh quote on each button click.
  3. Request Debouncing: I applied a debouncing technique to efficiently manage API requests, preventing multiple requests from firing simultaneously.

Useful resources

Author

Created by Fortune Iyoha. 🌟 Connect with me on my Frontend Mentor profile or follow me on 𝕏 (formerly Twitter) for updates and web development discussions. 💬

Acknowledgments

A huge thanks to @bccpadge for her effective method of cache setup, which inspired me to implement a reliable fetching process in this project.

About

This is a solution to the Advice generator app challenge on Frontend Mentor.

Topics

Resources

Stars

Watchers

Forks