RULYX

Supabase Plan

Turn Rulyx into a real cloud SaaS.

Supabase will replace local demo storage with real users, secure data isolation and subscription-linked access.

Auth

Supabase

Database

Postgres

Security

RLS

Billing Link

Stripe

Database

Tables we need

These tables are enough for a clean first SaaS version.

profiles

User account, plan, Stripe customer and preferences

trader_profiles

Capital, risk rules, RR, portfolio heat and identity

trades

All user trades, reviews, PnL and journal data

academy_progress

Lessons completed, XP, levels and certificate

subscriptions

Stripe status, plan, renewal and cancellation state

Implementation

Migration steps

This is the order we should follow when we switch from local demo to real SaaS.

1.

Create Supabase project

2.

Enable Supabase Auth

3.

Create database tables

4.

Enable Row Level Security

5.

Connect frontend auth

6.

Replace localStorage with Supabase

7.

Connect Stripe customer to profile

8.

Protect Pro pages with subscription status

Important

Do this after UX stabilization.

Supabase is the next major technical block, but it should be done once the product flow is stable.