Comments (23)
- 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
-
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
} -
Replacing downloads from uploadthings folder, with supabase storage (same as uploads)
-
removing uploading things from package.json.
from discord-clone.
I will do it try to complete it till tomorrow
from discord-clone.
Can do updating function to supabase storage ? Can You assign this issue to me?
from discord-clone.
Could you please provide steps how would you achieve this. @ArtiGaund
from discord-clone.
@Yeasir0032 can you assign this issue to me ??
from discord-clone.
@codebreaker3008
I have already assigned her.
If she fails to do so then you will be assigned
from discord-clone.
@Yeasir0032 Is there any timeline to complete it?
from discord-clone.
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.
@Yeasir0032 could you assign this to me too, accept the one which does it earlier
from discord-clone.
@Yeasir0032 Where are the tables of Supabase with their fields and their datatype?
from discord-clone.
from discord-clone.
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.
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.
@codebreaker3008
Do you want to do it?
from discord-clone.
@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.
Hey @ArtiGaund , could you update your progress. Let's fix the error you are facing.
from discord-clone.
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.
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.
Created buckets in database done
from discord-clone.
Hey @ArtiGaund
The documentation for table setup has been added. Do check Learn.md file.
from discord-clone.
Before upload file button was working, now its not working. Not able to upload image.
from discord-clone.
Hello, @ArtiGaund any update on this issue?
from discord-clone.
This issue is not assigned to me.
from discord-clone.
Related Issues (20)
- Design a Login Page HOT 15
- Design a Register User Page HOT 5
- Add a button for server explorer in navigation bar HOT 2
- Feature for auto commenting on a new issue creation
- Auto commenting feature for new PR raised HOT 2
- Augmented Reality (AR) Avatars HOT 2
- Activity Status Indicators HOT 7
- Auto comment on issue and self assign the issue HOT 6
- about us HOT 2
- Automate the task to manually create database structure using supabase migration HOT 3
- Provide scroll bar Smoothness HOT 5
- After Sign in there is a bug HOT 4
- File update HOT 1
- [Feature]: implement codeql ci/cd workflow for `TypeScript` HOT 1
- [feature]: implement PR title checker workflow for conventional commit prefixes HOT 1
- Automated Greeting Comment on Issue Close HOT 1
- Add a "Featured Author" section HOT 2
- feat update: adding labels while creating server HOT 4
- Create a Landing Page for Discord Clone. HOT 10
- [Bug] Unable to redirect to Home Page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-clone.