Skip to main content

Example 1: The Auction Notification System (Because Why Not?)

So, let’s pretend we’re building an auction system where users can bid on overpriced electronics they don’t need. Naturally, we want to notify only those users who actually care about electronics. Not Bob, who only collects rare stamps. Sorry, Bob. And before you ask—yes, this example uses Prisma. No, you don’t have to use Prisma. You could use PostgreSQL, Firebase, or an old shoebox with user data written on sticky notes. Whatever works for you.

Server (a.k.a. The Puppet Master)

Client (a.k.a. Where Users Get Hyped)

What Just Happened?

  1. We created an auction – Because capitalism.
  2. We found users who like the auction’s category – No point notifying stamp collectors about gaming PCs.
  3. We sent them a notification – With a dynamic URL so they can go bid away their rent money.
  4. Users see the magic happen in real-time – Thanks to NotificationFeed. No refresh required. Pure sorcery.

Final Thoughts (a.k.a. The Part You’ll Skip)

And that’s how you use Sendify to make an actually useful notification system. Of course, this is just an example. You can customize it, overcomplicate it, or completely ignore it. The choice is yours. 🚀