FeaturesNovember 20, 2023
Supabase dans LocataireCloud
Supabase est une alternative open-source à Firebase. LocataireCloud l'utilise pour l'authentification et la base de données.
Posted by

Introduction
Supabase is an open-source Firebase alternative. It's a great tool for building a backend for your app. It's now integrated avec LocataireCloud !
1. Create a supabase account
First, go to Supabase and create an account. It's free for up to 10,000 rows per table.
Then create a new project and a new table. You can use the following SQL schema:
CREATE TABLE public.users (
id bigint NOT NULL DEFAULT nextval('users_id_seq'::regclass),
email text NOT NULL,
password text NOT NULL,
created_at timestamp with time zone NOT NULL DEFAULT now(),
updated_at timestamp with time zone NOT NULL DEFAULT now(),
CONSTRAINT users_pkey PRIMARY KEY (id)
);2. Ajouter les identifiants dans LocataireCloud
Copiez l'URL et la clé anon depuis les réglages de votre projet Supabase, puis ajoutez-les dans votre fichier .env.local (voir .env.example) :
- .env.local
- .env.production