Public Boards is a simple CRUD (Create, Read, Update, Delete) application that allows users to create, edit, and delete boards. This project is built using React for the frontend and Supabase as the backend database.
- Public Access: No row-level security is implemented, allowing anyone to perform CRUD operations on all boards.
- CRUD Functionality: Users can:
- Create new boards.
- View existing boards.
- Edit boards.
- Delete boards.
- Real-time Updates: Changes are reflected immediately thanks to Supabase's real-time capabilities.
- Frontend: React
- Backend Database: Supabase
- Node.js installed on your system.
- A Supabase account and project setup.
-
Clone the Repository:
git clone https://github.com/Jowwan/Public-Boards.git cd Public-Boards
-
Install Dependencies:
npm install
-
Set Up Environment Variables:
- Create a
.env
file in the root directory. - Add your Supabase credentials:
REACT_APP_SUPABASE_URL=your-supabase-url REACT_APP_SUPABASE_ANON_KEY=your-anon-key
- Create a
-
Run the Application:
npm start
- The app will be available at
http://localhost:3000
.
- The app will be available at
-
Database Schema:
- Create a
boards
table in Supabase with the following columns:Column Name Type Constraints id UUID Primary Key created_at Timestamp Default: now() description Text Not Null author Text Not Null
- Create a
-
API Key:
- Use the public
anon
key provided by Supabase for client-side operations.
- Use the public
- Visit the application.
- Create, view, edit, or delete boards as needed.
- Changes are visible to all users instantly.
Feel free to contribute or suggest improvements!