How to get and display Supabase data in WeWeb

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 14

  • @AJAWGaming
    @AJAWGaming Год назад +1

    Awesome, thank you! Im thinking of switching from Xano to Supabase for upcoming projects. I love RLS and all of these features. One thing im worried about is complex business logic. Afaik, that's where edge functions come in handy (or functions? not sure). Not quite sure yet how to call them from weweb (I assume its the REST API plugin).

    • @weweb
      @weweb  11 месяцев назад +1

      Yes, for now the REST API plugin but we're working on improving the native integration with Supabase. Calling edge functions will likely be a part of that update

  • @laetitiamassa
    @laetitiamassa 7 месяцев назад

    really cool, thanks!
    Although the most critical might be: how to get images from supabase to display in weweb?
    (the bucket, the link to the table, the retrieval of the image path, for exemple) ?

    • @weweb
      @weweb  7 месяцев назад +1

      We'll update the Supabase plugin in the following days to be able to handle file storage and images. We'll keep you posted!

  • @thefleming1830
    @thefleming1830 10 месяцев назад

    I noticed the url for the car image was null troughout the entire video up untill the end. I also looked on the weweb forum for how to upload and retrieve the image/file url from supabase but the nocode way was not working yet, it can be done with js. Did you guys get this to work yet or is it still being worked on?

    • @weweb
      @weweb  8 месяцев назад

      It will be working when the V2 of the plugin will be pushed to production by the end of the month!

  • @gduteaud
    @gduteaud 9 месяцев назад

    Regarding the RLS part of the video, does this mean we always need to have a "everyone can access" policy in Supabase in order to access data during development? This seems undesirable from a security standpoint

    • @weweb
      @weweb  9 месяцев назад

      Hello 👋 No, we wouldn't recommend that either. We would recommend you setup your RLS policies as you would for your app in production.
      Then in the WeWeb editor, you can login as an admin user who has all the rights pertaining to your app while you're building.
      Does that make sense?

    • @gduteaud
      @gduteaud 9 месяцев назад

      @@weweb conceptually yes but I can't figure out how to do that in practice. Do you have resources explaining it?

    • @weweb
      @weweb  9 месяцев назад

      @@gduteaud sure! first, you need to add the Supabase Auth plugin in WeWeb and setup a login flow: ruclips.net/video/pJgwMv-1dPs/видео.html
      Then, you'll need to make sure you've setup user roles in Supabase and created user groups in WeWeb: docs.weweb.io/plugins/auth-systems/supabase-auth.html#user-roles-permissions
      You'll also need to make sure to write RLS policies in Supabase that match what you want user roles to be able to do or not.
      When you've done all this, you can login as a user in your WeWeb app and play around.
      If you want to give it a try and get stuck along the way, don't hesitate to reach out to us in the community with some screenshots or video of how things are setup on your side: community.weweb.io/

  • @g.l.5072
    @g.l.5072 Год назад

    Wow

  • @siralessandro
    @siralessandro 11 месяцев назад

    I have used WeWeb with Xano as the backend for several projects, and I’ve always used backend pagination (m.ruclips.net/video/CSNCVPYc7wE/видео.html). However, for a new project, I’ve chosen Supabase. How does backend pagination work with Supabase?

    • @weweb
      @weweb  11 месяцев назад

      When working with a Supabase collection, the pagination you add in the "Query configuration" step is backend pagination. The data is fetched after that step.
      Not sure if this is clear. If not, don't hesitate to reach out in the community: community.weweb.io/