DEV Community

Cover image for Why did I choose Supabase as a backend service for my Next.js full-stack project
Anmoldeep Singh
Anmoldeep Singh

Posted on • Edited on

5 1

Why did I choose Supabase as a backend service for my Next.js full-stack project

I've been exploring options for my upcoming side project and initially settled on using DrizzleORM with Postgres alongside Next.js. However, I recently stumbled upon Supabase, which seems to offer robust features and smooth integration for app development.

My goal was to create a straightforward yet efficient polling platform where users can easily create polls and others can vote on them. I have added the project link and repo at the end.

I found these Supabase features to be excellent and intuitive, making project setup and scaling a breeze.

Database

In today's tech landscape, PostgreSQL stands out as one of the most widely embraced databases, renowned for its robustness and versatility. And when integrating it into your projects, Supabase offers an unparalleled experience.

With Supabase, querying data becomes a breeze thanks to its built-in wrapper functions, simplifying the process and allowing developers to focus on building exceptional user experiences.

Permissions

Supabase seamlessly integrates PostgreSQL's RLS functionality, providing a robust framework for implementing access policies. Whether you prefer crafting policies directly with SQL or leveraging Supabase's convenient built-in templates, managing access permissions is super easy

Authentication

Supabase has inbuild templates for OAuth login methods like Github, Google, etc you can use simple email, password, and magic links techniques also.

Upon database creation, Supabase automatically generates an auth.users table, As users register on your application, Supabase assigns unique IDs, facilitating smooth integration with your database.

Realtime

Supabase's intuitive wrapper around PostgreSQL. It integrates real-time functionality into your applications, allowing you to subscribe to channels and receive instant updates.

Supabase simplifies the process, making it easy for developers to listen for real-time changes within their applications. With just a few lines of code, you can tap into the real-time capabilities of your database, enhancing the responsiveness and interactivity of your app.

Project Preview and Repo

Live Preview
GitHub Repo

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (1)

Collapse
 
gugaguichard profile image
Gustavo (Guga) Guichard

Hey Anmol, great project! Since you’re using Supabase with PostgreSQL, you might also want to check out Flashboard. I’m one of the creators, and it’s a web-based tool that makes it easy to manage PostgreSQL databases and quickly create admin UIs without extra coding. Could be a good complement to your stack! Would love to hear your thoughts.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay