Replies: 4 comments
-
First, we will create a table in the database of your choice. You can either use a folder api/counter/+layout.ts or place the file in the same folder as +layout.svelte.ts. For those who are using a database, here is the SQL for creating the table: you can take this simple exemple for creating your own polling |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
// src/routes/+layout.ts `
}` |
Beta Was this translation helpful? Give feedback.
-
+page.svelte `<script lang="ts">
});
// src/routes/+page.svelte real-time data managementl
` |
Beta Was this translation helpful? Give feedback.
-
First of all, I am currently building a SaaS application, and I am using the best language and framework, Svelte. Supabase has a good CLI, but it can be complicated at times with triggers, RLS, etc., when creating an app. There's also the real-time feature to avoid reloading all the data, but real-time in general can be expensive with all the requests from Appwrite, Pocketbase, and so on. My structure is nested with multiple foreign keys, so I'm looking for a system to implement "fake real-time." Many didn't have a solution for this, but I researched and found one. I want to create a tutorial on GitHub for Svelte.
Beta Was this translation helpful? Give feedback.
All reactions