This is a simple CRUD (Create, Read, Update, Delete) application built with React for the frontend and JSON Server to simulate a backend REST API. The purpose of this application is to demonstrate how to perform CRUD operations using React components and interact with a simulated backend server using JSON Server.
Before you begin, ensure you have met the following requirements:
Clone the repository to your local machine:
git clone https://github.com/CletsyMedia/CRUD_OPS.git
Navigate into the project directory:
cd CRUD_OPS
Install dependencies using npm:
npm install
Start the JSON Server and target the json directory to simulate the backend:
json-server --watch src/components/DataBase/db.json
This will start the JSON Server with the data stored in db.json
file.
Start the React application with vite command:
npm run dev
This will start the development server for the React application. The app will be accessible at http://localhost:3000
.
You can now perform CRUD operations on the application:
Contributions are welcome! If you have any suggestions, improvements, or feature requests, please open an issue or create a pull request.
Unless stated otherwise, all code in this CRUD Operation projects are available under the MIT License. Feel free to use them as inspiration or reference for your own projects.
© 2024 CletsyMedia. All rights reserved.