Code Monkey home page Code Monkey logo

employee-filter's Introduction

Employee Filter App.

This is a simple React web application that enables users to filter employee data based on the number of records and the starting ID. It fetches data from a dummy API and displays the filtered employee list.

Features

  • Filter employees by specifying the number of records to display.
  • Filter employees by setting the starting ID to begin displaying records.
  • Real-time filtering without page refresh.
  • Error handling for API calls and user input.

Demo

You can check out the live demo of the Employee Filter Application here.

Installation

To run the application locally, follow these steps:

  1. Ensure you have Node.js, npm or yarn installed on your machine.
  2. Clone this repository to your local machine using git clone.
  3. Navigate to the project directory: cd employee-filter.
  4. Install the required dependencies: yarn.

Usage

  1. Run the application locally: yarn start and the app should now be running on http://localhost:3000
  2. Use the input fields to set the number of records and the starting ID.
  3. The application will fetch data from the dummy API and display the filtered results in real-time.

Running Tests

You can also run the unit tests for the application using the following command:

yarn test

Technologies Used

  • React: JavaScript library for building user interfaces.
  • Axios: Promise-based HTTP client for making API requests.
  • TailwindCSS: Utility-first CSS framework for rapid UI development.
  • Jest and Testing Library: For unit testing the components.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.

employee-filter's People

Contributors

ann-glitch 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.