profilecity / vidur

Vidur - Recruiting OS for forward thinking companies.
https://profilecity.xyz/vidur
Other
196 stars 85 forks source link

Supabase - Storage + DB #43

Open amandesai01 opened 1 month ago

amandesai01 commented 1 month ago
Nilakshhh commented 1 month ago

hey @amandesai01 can I work on this?

harshil15999 commented 1 month ago

hey @amandesai01 can I work on this?

Hi can you telll what approach will you be taking in this ? @Nilakshhh

harshil15999 commented 1 month ago
harshil15999 commented 1 month ago

@amandesai01 please split this issue into two sub tasks

Nilakshhh commented 1 month ago

@harshil15999 The objective is to create a custom 'unstorage' driver that can interact with supabase and perform necessary CRUD operations on a POSTGRES database We would require to import @supabase/supabase-js library and 'unstorage' to create a custom driver, ofetch is not necessary because supabase can handle HTTP requests.

Driver options required are URL, API_KEY and storage bucket name. Basic CRUD operations in my opinion should be -getItem -setItem -getAllItems -removeItem -clearAllItems

After the normalization of API_KEY, we can use our driver to connect to Supabase and handle database operations.

Please guide me if there should be any changes in the approach

vaswanid commented 1 month ago

Can I work on this issue?

harshil15999 commented 1 month ago

Can I work on this issue?

what part of this issue you want to work with. Can you come with one line of proposal.

harshil15999 commented 1 month ago

@harshil15999 The objective is to create a custom 'unstorage' driver that can interact with supabase and perform necessary CRUD operations on a POSTGRES database We would require to import @supabase/supabase-js library and 'unstorage' to create a custom driver, ofetch is not necessary because supabase can handle HTTP requests.

Driver options required are URL, API_KEY and storage bucket name. Basic CRUD operations in my opinion should be -getItem -setItem -getAllItems -removeItem -clearAllItems

After the normalization of API_KEY, we can use our driver to connect to Supabase and handle database operations.

Please guide me if there should be any changes in the approach

Issue is divided into two parts.

  1. Making a driver for storage . by storage I mean something similar to s3
  2. Second part is testing whether drizzle can be used to store things in supabase
harshil15999 commented 1 month ago

@harshil15999 The objective is to create a custom 'unstorage' driver that can interact with supabase and perform necessary CRUD operations on a POSTGRES database We would require to import @supabase/supabase-js library and 'unstorage' to create a custom driver, ofetch is not necessary because supabase can handle HTTP requests.

Driver options required are URL, API_KEY and storage bucket name. Basic CRUD operations in my opinion should be -getItem -setItem -getAllItems -removeItem -clearAllItems

After the normalization of API_KEY, we can use our driver to connect to Supabase and handle database operations.

Please guide me if there should be any changes in the approach

Decide whether you wanna work with storage or database .

gloriasingh08 commented 3 weeks ago

Can I work on this issue?