Each of us has a side project: a great idea that gets stranded on our hard drive. Among the most common reasons is the too much boilerplate required for CRUD.
There are many tools that come to our aid, Google Firebase and AWS Amplify are some, but how to manage vendor lock-in? Is there an open source alternative?
This is where Supabase enters the landscape of possible BaaS solutions, with a PostgreSQL heart, authentication and authorization out of the box, real-time subscriptions and storage, we have everything we need in an open source and self-hostable solution!
And what do you do, do you miss out on it?
2. Perché tanti sideprojects
muoiono?
+ ci rendiamo conto che sono inutili
+ ci costringono a fare ció che non abbiamo voglia
di fare ALIAS PIGRIZIA
www.gitbar.it
7. Il tentativo
Usare supabase per il backend (magari self-hostandolo
Fare il frontend + backend for frontend (biz logic) con nextjs
Obiettivi: Concentrarmi sulla e sulla
UI BIZ LOGIC
www
.gitbar
.it
8. Cosa é supabase
The Open Source
Firebase Alternative
BaaS Platform on top of AWS
Toolkit self-hostabile
Come funziona...
www.gitbar.it
11. Postgresql
Single Source of Trut
contiene lo schema + dati
supporta tipi custom (estensioni
contiene le regole di autorizzazione (rls
contiene funzioni (Biz logic)
supporta la full text searc
esportabile tutto con pg-dump / restor
supporta le subscriptions
www.gitbar.it
Database
Calcifer Il castello errante di Howl (2004)
Calcifer Il castello errante di Howl (2004)
25. Api per l’upload e il management dei fil
Driver compatible con S
Ogni file corrisponde con un record nel database
nel namespace storag
RLS per bucket / folder / fil
UI per upload e gestione file
www.gitbar.it
File
S
to
ra
g
e
File storage
Gran Dama — La Gran Dama (大ババ O-Baba)
Nausicaä della Valle del vento (1984)
27. Interfacciare il CRUD i dati e la logica di Busines
Alpha (funzionalitá nascosta nel pannello
di admin nella versione self installed
Configurabile da ui
www.gitbar.it
Bizlogic
Chihiro e Lin
La città incantata (2001)
Business Logic
28. www.gitbar.it
Gran Dama - Nausicaä della Valle del vento(1984)
Biz logic
Business Logic
functions triggers function
hooks
30. www.gitbar.it
Biz logic
Triggers
Funzione nativa di postgresq
Invoca una funzione prima/dopo un evento sql
(select, update, delete
Puo scattare una volta per riga o per event
Creati via UI o SQL
31. www.gitbar.it
Biz logic
Function hooks
Invoca http Webhook / AWS lambda /
Google cloudru
Async 300 req/s - Sync 3.5 req/10s
Si basano su un worker e una coda
Usano PG_NE
Non visibili nella versione on premis
http method / params / headers configurabili
32. www.gitbar.it
Chihiro e Lin
La città incantata (2001)
Cosa manca / Limiti
Graphq
Kubernete
“One command install”
Il DB non é il
componente piú
semplice da scalare
Progetto giovane,
tanto da fare
33. www.gitbar.it
Chihiro e Lin
La città incantata (2001)
Take away
PostgreSQL é molto di piú di un posto dove mettere record