Slidescribe is a Notes app that allows users to manage their notes. Users can add, update, and delete notes with a draggable interface. Customization options for note colors and real-time updates make it a flexible tool for organizing thoughts and ideas.
- React.js
- Tailwind CSS
- Supabase
- Draggable notes: Easily move notes around the workspace.
- Customizable Cards: Update note content and change card colors.
- Supabase Integration: Stores notes with Supabase.
- Add Notes: Click the "+" button to create a new note.
- Edit Notes: Click on a note to update its content or change its color.
- Drag and Drop: Move notes around the workspace as needed.
- Delete Notes: Use the delete option to remove unwanted notes.
git clone https://github.com/tvxxd/slidescribe.git
cd slidescribe
npm install
-
Sign in to Supabase:
- Go to Supabase and sign in to your account.
-
Create a New Project:
- Create a new project.
-
Get URL and API Key:
- Go to the Project Settings > API.
- Copy your
Project URL
andAPI Key
.
-
Add to .env File:
- Create a
.env
file in the root directory and add the following lines:
- Create a
VITE_SUPABASE_URL=
VITE_SUPABASE_KEY=
-
Create tables and columns from
Table Editor
- Create new table called
notes
- Create columns:
id - int8, PRIMARY, is identity
body, colors, position | type - text
- Get default value for
colors
fromsrc/assets/colors.json
, or below from SQL query - default value for
position
{"x":100,"y":100}
- Create new table called
-
Or
- Navigate to the SQL editor and run the following SQL query to create the
notes
table:
CREATE TABLE notes ( id serial PRIMARY KEY, body text NULL, colors text NOT NULL DEFAULT '{ "id": "color-orange", "colorHeader": "#F4A261", "colorBody": "#F7B383", "colorText": "#18181A" }', position text NOT NULL DEFAULT '{"x":100,"y":100}' );
- Navigate to the SQL editor and run the following SQL query to create the
Auth policies
- Enable RLS
- Create a policy with the following settings for
SELECT, INSERT, UPDATE, DELETE
, no need to select roles, expression:true
npm run dev