This application demonstrates how to use SurrealDB features like Live Queries, Authentication, Indexing and Graph Queries in your applications. Unlike the previous version of notes app in which we built an API layer and connected with SurrealDB on the server side, in this application, we securely connect to the database client side.
- Make sure you have
pnpm
installed. If not, install it usingnpm install -g pnpm
.
git clone https://github.com/surrealdb/examples.git
cd examples/notes-v2
pnpm i
pnpm dev
surreal sql --conn ws://localhost:3001 --user root --pass root --ns test --db test --pretty
Manually go over all the .surql files in the src/schema directory and execute all the queries.
The notes-v2 app extends the previous notes app with new features like live updates, tags and multi-user login.
We'd love to see what you build with this example! Share your projects and tag @SurrealDB on Twitter!
Join our Discord community to stay updated, get your questions answered, and showcase your projects.