V2.5 : VOICI LES MODIFICATIONS MAJEURS APPRTÉES DANS CETTE VERSION :

-> (BÉTA) : SYSTÈME D'ANNONCES EN GARE VIA UN MODEL IA DE SIMONE HERAULT.
This commit is contained in:
Ferrovia committed 2026-07-02 22:22:37 +02:00
1 parent ad3fc8938c
commit ad999aa44f
14 files changed
+517 -62

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
require('dotenv').config();
const { createClient } = require('@supabase/supabase-js');
const supabase = createClient(process.env.REACT_APP_SUPABASE_URL, process.env.REACT_APP_SUPABASE_ANON_KEY);
const channel = supabase
.channel('test_channel')
.on(
'postgres_changes',
{ event: 'INSERT', schema: 'public', table: 'annonces_diffusions' },
(payload) => {
console.log('Realtime Event Received!', payload);
}
)
.subscribe((status) => {
console.log('Subscription status:', status);
});
console.log('Waiting for events...');
// We will kill this process manually or let it timeout
setTimeout(() => {
console.log('Timeout. Exiting.');
process.exit(0);
}, 10000);