Skip to content

This project is a simple web-based application that fetches and displays search results in real-time based on user input. It uses debouncing to minimize the number of API calls and Promises to simulate an API call with a delay. The results are dynamically updated in the DOM, and the application includes responsive navigation bar that adjust sizes.

Notifications You must be signed in to change notification settings

KMONIKA26/Real-Time-Search-with-Debouncing-and-Promises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Real-time Search with Debouncing and Promises

A simple web app that fetches and displays search results in real-time. It uses debouncing to minimize API calls and Promises to simulate a delayed API response. Includes a responsive navbar.

Features

  • Real-time Search: Updates results as you type.
  • Debouncing: Triggers API calls only after 500ms of inactivity.
  • Simulated API: Uses Promises with a 1-second delay for response.
  • Responsive Navbar: Adapts to mobile and desktop views with a hamburger menu.

How to Run

  1. Clone the repo:
    git clone https://github.com/KMONIKA26/Real-Time-Search-with-Debouncing-and-Promises
  2. Open index.html in your browser.

Project Structure

  • index.html: Main HTML file.
  • script.js: JavaScript for search functionality.
  • README.md: Project documentation.

Responsive Design

  • Navbar collapses into a hamburger menu on smaller screens.
  • Layout adjusts for various screen sizes.

License

MIT License - see LICENSE for details.

About

This project is a simple web-based application that fetches and displays search results in real-time based on user input. It uses debouncing to minimize the number of API calls and Promises to simulate an API call with a delay. The results are dynamically updated in the DOM, and the application includes responsive navigation bar that adjust sizes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published