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

Implementing comment creation

In your existing UI, in the Ticket Details page, there’s already a TicketComments component used that has the components we need. So, the only thing we have to do is to process the comment and send it to the Supabase server for insertion into the database.

To do this, open up the TicketComments.js file and instantiate a Supabase client. Also, we need to make sure we add a property to TicketComments such that we can pass the ticket ID, such as <TicketComments ticket={ticket.id} />:

export function TicketComments( {ticket} ) {
  const commentRef = useRef(null);
  const supabase = getSupabaseBrowserClient();
...

Then, we need to ensure to pass that ticket ID from TicketDetails to the TicketComments component. In the TicketDetails.js file, pass it like so:

<TicketComments ticket={id} />

Next, back in the TicketComments component, change the onSubmit code of the <form> element using the following code...

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