This is a simple CRUD (Create, Read, Update, Delete) application built using React, Material-UI, Vite, and Supabase. The app allows users to perform basic operations on a dataset stored in a Supabase database.
CRUD operations are fundamental in most applications as they allow users to create, read, update, and delete data. This CRUD app provides a simple user interface that interacts with a Supabase database to perform these operations seamlessly.
The CRUD app comes with the following features:
- Create: Users can add new data entries to the database through a user-friendly form.
- Read: The app displays the existing dataset in a tabular format, allowing users to view the stored information.
- Update: Users can modify existing data entries by updating the relevant fields.
- Delete: The app allows users to remove unwanted data entries from the database.
The following technologies were used to build this CRUD app:
- React: A popular JavaScript library for building user interfaces.
- Material-UI: A React UI framework that provides pre-built components with a modern design.
- Vite: A fast and lightweight build tool that serves as a development server.
- Supabase: An open-source alternative to Firebase that provides a scalable backend infrastructure for applications.
Follow the steps below to set up the CRUD app locally:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/supabase-react-crud-app.git -
Change directory to the project folder:
cd supabase-react-crud-app -
Install the required dependencies using npm or yarn:
npm installor
yarn install -
Create a
.envfile at the root of the project and add your Supabase credentials:REACT_APP_SUPABASE_URL=YOUR_SUPABASE_URL REACT_APP_SUPABASE_KEY=YOUR_SUPABASE_KEY
Once you have set up the project, you can run the app locally using the following command:
npm run dev
This will start a development server provided by Vite, and you can access the app in your web browser by visiting http://localhost:3000.
If you'd like to contribute to this project, follow these steps:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name:
git checkout -b feature/your-feature. - Make your changes and commit them:
git commit -m "Add your feature". - Push the changes to your forked repository:
git push origin feature/your-feature. - Submit a pull request to the original repository.