https://supabase.com/ logo
Join Discord
Powered by
# help
  • y

    YogurtDrinker

    07/29/2021, 10:36 AM
    I'm getting
    Cannot access 'supabase' before initialization
  • y

    YogurtDrinker

    07/29/2021, 10:37 AM
    Pointing at
    const { createClient } = supabase;
  • s

    silentworks

    07/29/2021, 10:37 AM
    Probably need to wait for the document to load first
  • s

    silentworks

    07/29/2021, 10:38 AM
    Move all the code into the
    document.addEventListener
  • y

    YelloJello

    07/29/2021, 10:40 AM
    Copy code
    js
    const { createClient } = supabase;
    
    const supabase = createClient('MyLink', 'MyKey');
    You're declaring a new variable called supabase, call it something else
  • s

    Sduu_

    07/29/2021, 10:57 AM
    i.e.
    const supabaseClient = createClient(...)
  • c

    Carloshs94

    07/29/2021, 10:59 AM
    Hey, i have a chatroom already in PRO in Firebase Realtime. could i use the supabase realtime for the same case?
  • c

    Carloshs94

    07/29/2021, 11:00 AM
    or is not a good usecase for a postgres database?
  • a

    Abarad

    07/29/2021, 11:10 AM
    It is a perfect use case 🙂 https://twitter.com/fenixhub/status/1414662499325071367
  • y

    YelloJello

    07/29/2021, 11:14 AM
    Realtime is just a flat JSON tree, so you don't get the benefits of better querying that you do with supabase but imo migration will be a tad bit difficult
  • a

    Abarad

    07/29/2021, 11:14 AM
    https://github.com/fenix-hub/godot-engine.supabase-examples/tree/main/slack-clone
  • v

    vblinden

    07/29/2021, 11:31 AM
    Is there any way to buy a shirt (or hoodie) from Supabase? I see all the swag drops on Twitter and stuff, but can’t find an actual store.
  • s

    silentworks

    07/29/2021, 11:32 AM
    Swag store isn't ready as yet, but you will be able to in the future.
  • y

    YogurtDrinker

    07/29/2021, 12:15 PM
    Yeah got it thanks!
  • y

    YogurtDrinker

    07/29/2021, 12:23 PM
    Is there a way for me to filter according to timing i have a table row called
    ExpirationTime
    which contains the exact timing like
    j
    • 2
    • 1
  • y

    YogurtDrinker

    07/29/2021, 12:24 PM
    Should i use like
    le
    to find the non expired date? Compare using
    Date.now()
  • c

    Carloshs94

    07/29/2021, 12:51 PM
    ill just probably do it from scratch
  • c

    Carloshs94

    07/29/2021, 12:51 PM
    thanks guys
  • b

    brandao landry

    07/29/2021, 1:14 PM
    hello everyone i'm new here and i'm sorry to have arrived with some problems as you can see on this capture at the last line, i'm trying to run supabase locally thanks to the cli but i have this error I tried to solve the problem on the internet since yesterday and I have no solution if it fades you I need your help. if its can help i turn on fedora 34
  • m

    mcmx

    07/29/2021, 1:34 PM
    Did you install docker-compose? and set the execution permission on it? what do you get if simply run 'docker-compose version' ?
  • b

    brandao landry

    07/29/2021, 1:37 PM
    I installed docker compose
  • m

    mcmx

    07/29/2021, 1:40 PM
    and 'docker ps' ? <- to verify connection to docker daemon.
  • b

    brandao landry

    07/29/2021, 1:43 PM
    docker ps command
  • y

    YogurtDrinker

    07/29/2021, 1:43 PM
    ExpirationTime
  • m

    mcmx

    07/29/2021, 1:44 PM
    your user must be part of the docker group
  • m

    mcmx

    07/29/2021, 1:48 PM
    try something like this: $ sudo usermod -G docker AshEmpire $ newgrp - docker Or just the first command, logout and login again to reload the groups.
  • b

    brandao landry

    07/29/2021, 1:52 PM
    I have executed all the commands you asked me here is my new result for docker ps @User
  • m

    mcmx

    07/29/2021, 1:53 PM
    The docker part should be working now, as you see there's a couple of images already running.
  • b

    brandao landry

    07/29/2021, 2:03 PM
    thank you already for your help @User but even after this the supabase start command always shows me the same message as on the first capture I sent
  • m

    mcmx

    07/29/2021, 2:05 PM
    I haven't tried selfhosting it yet, I'm sorry can't help you more, maybe shut down supabase and up again? or something like that.
1...232425...316Latest