Build a Full Stack App with SvelteKit and OceanBase

Wayne S.
Wayne S.
Published on August 1, 2023
10 minute read
Key Takeaways
  • This tutorial builds a Todo app from scratch with SvelteKit (frontend + server) and OceanBase (database), using the MySQL2 driver to connect — since OceanBase is MySQL-compatible, no special adapter is needed.
  • The architecture separates concerns cleanly: Svelte components for UI, a writable store for client-side state, server-side API routes (/api/todos) for CRUD, and a shared OceanBase connection module — all database queries run server-side.
  • Full source code on GitLab. By the end you'll have a working full-stack app with create, read, update (toggle complete), and delete, backed by a distributed database.
Share
X
linkedin
ICON_SHARE
mail