Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building Production-Grade Web Applications with Supabase
  • Table Of Contents Toc
Building Production-Grade Web Applications with Supabase

Building Production-Grade Web Applications with Supabase

By : David Lorenz
4.5 (11)
close
close
Building Production-Grade Web Applications with Supabase

Building Production-Grade Web Applications with Supabase

4.5 (11)
By: David Lorenz

Overview of this book

Discover the powerful capabilities of Supabase, the cutting-edge, open-source platform flipping the script on backend architecture. Guided by David Lorenz, a battle-tested software architect with over two decades of development experience, this book will transform the way you approach your projects and make you a Supabase expert. In this comprehensive guide, you'll build a secure, production-grade multi-tenant ticket system, seamlessly integrated with Next.js. You’ll build essential skills for effective data manipulation, authentication, and file storage, as well as master Supabase's advanced capabilities including automating tasks with cron scheduling, performing similarity searches with artificial intelligence, testing your database, and leveraging real-time updates. By the end of the book, you'll have a deeper understanding of the platform and be able to confidently utilize Supabase in your own web applications, all thanks to David's excellent expertise.
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
Part 1:Creating the Foundations of the Ticket System App
5
Part 2: Adding Multi-Tenancy and Learning RLS
10
Part 3: Managing Tickets and Interactions
15
Part 4: Diving Deeper into Security and Advanced Features

Using webhooks

Webhooks are one of the most powerful and super-convenient features of Supabase. Under the hood, they’re just database triggers that make HTTP requests with the net Postgres extension, but the webhook UI makes creating such triggers even simpler as it abstracts away complexity.

For example, when you want to trigger a specific URL whenever a new ticket is created, you can navigate to Database | Webhooks, click on Create new hook, then set Table as tickets and Events as Insert. Finally, all you need to do is to provide an endpoint URL for where the webhook request shall be sent (see the HTTP Request section in Figure 13.16).

Figure 13.16: Creating a webhook

Figure 13.16: Creating a webhook

If you choose POST as the method of the request, Supabase will also internally make sure to send row data along the POST payload of the request. For example, for an INSERT happening on the tickets table, the payload on your endpoint will receive something like this:

{
 ...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building Production-Grade Web Applications with Supabase
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon