Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kmonika26/real-time-search-with-debouncing-and-promises

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.
https://github.com/kmonika26/real-time-search-with-debouncing-and-promises

apicalls html5 javascript responsive-web-design

Last synced: 3 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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:
```bash
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](LICENSE) for details.