Giter Site home page Giter Site logo

Comments (23)

ArtiGaund avatar ArtiGaund commented on August 13, 2024 1
  1. Initialize supabase client (/config/supabase.js)
    import { createClient } from "@supabase/supabase-js"

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_KEY;
const supabase = createClient(supabaseUrl, supabaseKey);

export default supabase

  1. Replacing uploads from uploadthings folder, Uploading with Supabase storage
    import { supabase } from "./config/supabase
    async function uploadFile(file){
    const filePath=...${file.name}
    const {data,error} = await supabase.storage.from('bucket-name').upload(filePath)
    if(error) console.error("Error while uploading file", error)

    return data
    }

  2. Replacing downloads from uploadthings folder, with supabase storage (same as uploads)

  3. removing uploading things from package.json.

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024 1

I will do it try to complete it till tomorrow

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

Can do updating function to supabase storage ? Can You assign this issue to me?

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

Could you please provide steps how would you achieve this. @ArtiGaund

from discord-clone.

codebreaker3008 avatar codebreaker3008 commented on August 13, 2024

@Yeasir0032 can you assign this issue to me ??

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

@codebreaker3008
I have already assigned her.
If she fails to do so then you will be assigned

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

@Yeasir0032 Is there any timeline to complete it?

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

This issue will not take more than 4 days.
If you need some more time you can ask for it but if you become inactive then I have to give chance to others

from discord-clone.

codebreaker3008 avatar codebreaker3008 commented on August 13, 2024

@Yeasir0032 could you assign this to me too, accept the one which does it earlier

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

@Yeasir0032 Where are the tables of Supabase with their fields and their datatype?

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

Screenshot from 2024-05-11 20-28-26
Here is the schema visualizer

from discord-clone.

growupanand avatar growupanand commented on August 13, 2024

I am working on the file preview component #19, How much time it can take for a new upload flow any idea?

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

You can assign this issue to someone. My setup is not working, and it is not good to hold an assignment if I am not able to work on it.

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

@codebreaker3008
Do you want to do it?

from discord-clone.

codebreaker3008 avatar codebreaker3008 commented on August 13, 2024

@Yeasir0032 yes but i am caught up in some personal issues, you could assign it to me but it will take some time

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

Hey @ArtiGaund , could you update your progress. Let's fix the error you are facing.

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

I will update in night bcz my laptop is updating now, it was freezing alot, so today I am updating it, may be it will resolve freezing issue.

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

How far have you reached? @ArtiGaund
Did you setup supabase database (Postgres) on your own. If yes then please add your schema visualizer as I have done above. If no then we need to do that first.
Following steps

  • Create a storage bucket in supabase
  • Creating a upload dropzone and uploading to storage bucket.

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

Created buckets in database done

from discord-clone.

Yeasir0032 avatar Yeasir0032 commented on August 13, 2024

Hey @ArtiGaund
The documentation for table setup has been added. Do check Learn.md file.

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

Screenshot (341)

Before upload file button was working, now its not working. Not able to upload image.

from discord-clone.

PayalKumari10 avatar PayalKumari10 commented on August 13, 2024

Hello, @ArtiGaund any update on this issue?

from discord-clone.

ArtiGaund avatar ArtiGaund commented on August 13, 2024

This issue is not assigned to me.

from discord-clone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.