Coder Social home page Coder Social logo

ankitchopde / metta_social_assignment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 49 KB

The World By Currency app allows users to search for countries based on their currency. Users can enter a currency code or name, and the app will fetch and display information about countries using that currency.

Home Page: https://metta-social-assignment-phi.vercel.app/

JavaScript 93.85% HTML 6.13% CSS 0.02%

metta_social_assignment's Introduction

World By Currency App

Overview

The World By Currency app allows users to search for countries based on their currency. Users can enter a currency code or name, and the app will fetch and display information about countries using that currency. The app includes debouncing for a smoother search experience and simple pagination to navigate through the search results. image

Features

Currency Search

  • Users can enter a currency code or name in the search bar.
  • The app fetches and displays information about countries using the entered currency.
  • Debouncing is implemented to delay the search execution until a certain period has elapsed after the last input, improving performance. image

Pagination

  • If the search results contain more than 10 countries, pagination controls are displayed.
  • Users can navigate through the pages to view additional search results. image

Implementation

Debouncing

  • The app uses a custom debounce function to delay the execution of the search function after user input.
  • The debounce function ensures that the search is only triggered after a certain delay, preventing unnecessary API calls for each keystroke.

Pagination

  • Simple pagination controls (Previous and Next buttons) are displayed if there are more than 10 search results.
  • The app calculates the total number of pages based on the number of countries and the items per page.

Styling

  • Basic styling is applied to the search input, country cards, and pagination buttons for a clean and user-friendly interface.
  • Disabled buttons have a distinct style to indicate their disabled state.

Usage

  1. Clone the repository.
  2. Install dependencies using npm install.
  3. Run the app using npm run dev.
  4. Open the app in your browser at https://metta-social-assignment-phi.vercel.app.

Dependencies

  • React
  • Axios

metta_social_assignment's People

Contributors

ankitchopde avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.