Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 30 min read How-to mediumAdept

Building a Realtime Trello Board with Supabase and Angular

A Trello-style board clone built on Supabase, Angular and Tailwind, with boards, lists and cards stored in Postgres tables. Access is secured with Row Level Security policies backed by a security-definer function that returns the current user's boards. Triggers auto-link new boards to their creator and mirror auth users into a public users table, and setting replica identity full lets realtime subscriptions see deleted rows. The Angular side covers magic link sign-in through an RxJS BehaviorSubject auth service, routing, and realtime updates, with full source on GitHub.

Assumes: Angular basicsSQL basicsRxJS observables

Related posts

  • Authentication in Ionic Angular with Supabase

    Supabase mediumAdept

    An Ionic Angular realtime messaging app built on Supabase demonstrates email/password signup and login, magic link authentication for web and native mobile, and route protection with Angular guards. The Postgres side defines users, groups and messages tables, adds Row Level Security policies so the public anon key is safe in the frontend, uses a security-definer trigger to copy new auth users into a public table, and publishes the messages table for realtime inserts. On the client, an AuthService wraps supabase.auth and tracks session state in an RxJS BehaviorSubject, loading the stored session with getUser() at startup because onAuthStateChange usually doesn't fire on app load. Most of the logic applies to any Angular web project.

  • Making a Real-Time Chat App with Supabase on Replit

    Replit mediumAdept

    A real-time public chat app can be built with a Vue 3 and Tailwind CSS frontend on Replit backed by Supabase's hosted Postgres. The walkthrough creates a messages table via SQL, enables replication-based real-time events, and wraps the supabase-js client in a Vue composable. That composable handles paginated message loading by range, INSERT subscriptions for live updates, and inserts for sending. Users are identified only by a random username stored in localStorage, and older messages load when the list is scrolled to the top.

  • Flutter Authorization with RLS

    Supabase mediumAdept

    Extends a basic Flutter real-time chat app into a 1-on-1 chat with authorization enforced by PostgreSQL Row Level Security on Supabase. The schema adds rooms and room_participants tables, a room_id foreign key on messages, and a security-definer plpgsql function create_new_room that returns an existing room for two users or creates one. The client side uses flutter_bloc cubits to stream room participants and each room's latest message via Supabase realtime. Email confirmation is handled through deep links configured in iOS Info.plist, AndroidManifest.xml and the Supabase redirect URL settings.

  • Storage is now available in Supabase

    Supabase mediumAdept

    Supabase Storage is an object store built as a custom TypeScript/Fastify API server behind Kong, with object metadata and access policies kept in each project's Postgres database and objects stored in S3. Existing servers like Minio, Ceph and Zenko were rejected because they couldn't use Postgres as their datastore, carried features unnecessary on managed backends, and didn't map to Supabase Auth. Authorization uses Postgres Row Level Security on a storage.objects table: if a user can select or delete the row, they can read or delete the object, so policies are written in SQL and listing filters happen in the database. Uploads stream through Node streams to S3 with minimal buffering, trading off knowing the object size upfront, and objects get a default 1-hour Cache-Control header.

  • supabase-js v2

    Supabase mediumAdept

    supabase-js v2 brings incremental quality-of-life changes over v1. Types are now generated from the database via the CLI and set once on the client. signIn() is split into signInWithPassword() and signInWithOtp(), server-side auth moves to auth.admin, and the auth library is now async to fix a multi-tab token refresh race condition that logged users out. insert/update/upsert no longer return data unless select() is appended, which avoids surprise failures under Row Level Security. Constructor config is scoped per sub-library, each sub-library gets typed errors, Edge Function invocations auto-detect content type, and a new channel() API replaces from().on() for realtime and Postgres change subscriptions. v1 gets security and maintenance patches for three months.

The quest for software engineering knowledge.

Look:
Layout: