Skip to content

CRUD Operation in table with react-table , Formik &Yup ,Json server , react-icons and React Bootstrap

Notifications You must be signed in to change notification settings

mateen-mahi/react-table-and-advance-form-validation

Repository files navigation

CRUD Operations with React-Table, Formik & Yup, JSON Server, React Icons, and React Bootstrap

This project demonstrates how to perform CRUD (Create, Read, Update, Delete) operations in a table using various popular React libraries and tools. It utilizes React-Table for data presentation and management, Formik & Yup for form handling and validation, JSON Server for the API, React Icons for icons, and React Bootstrap for styling.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed (at least Node.js version 14 or higher)
  • Familiarity with React and basic JavaScript
  • Git installed (optional, for cloning the repository)

Getting Started

To get this project up and running on your local machine, follow these steps:

  1. Clone the repository (if you haven't already):

    git clone https://github.com/mateen-mahi/react-table-intermediate1.git
    
    

npm install

Install project dependencies:

npm run dev

Start the development server:

npx json-server -p 3500 -w data/db.json

In a separate terminal, start the JSON Server for the API:

Features

  • CRUD Operations: Easily perform Create, Read, Update, and Delete operations in a table.
  • Form Handling: Utilize Formik & Yup for form validation and handling.
  • Customizable Design: Customize the application's design to match your preferences.
  • Error Handling: Gracefully handle errors that may occur during operations.
  • Performance Optimization: Minimize unnecessary re-renders to improve performance.

Folder Structure

  • /src: Main application source code.
  • /src/components: React components used in the project.
  • /data: JSON file used by JSON Server as the data source.

Customization

Feel free to customize the project to meet your specific requirements. Modify styles, add new features, or integrate additional libraries as needed.

Contributing

Contributions are welcome! If you'd like to contribute to this project, follow the standard GitHub workflow:

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Submit a pull request.

About

CRUD Operation in table with react-table , Formik &Yup ,Json server , react-icons and React Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published