Skip to content

Latest commit

 

History

History
 
 

notes-v2

Surreal Stickies 2.0: Adding Graph Relations, Live Queries, and Authentication.

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.

🛠 Setup and Installation

Prerequisites

  • Make sure you have pnpm installed. If not, install it using npm install -g pnpm.

Steps

Clone the Examples Repository

git clone https://github.com/surrealdb/examples.git

Navigate to the Notes-V2 Directory

cd examples/notes-v2

Install Dependencies (First Time Only)

pnpm i

Start the Frontend and Database

pnpm dev

Connect to SurrealDB Instance

surreal sql --conn ws://localhost:3001 --user root --pass root --ns test --db test --pretty

Execute Schema Queries

Manually go over all the .surql files in the src/schema directory and execute all the queries.

🌟 Features

The notes-v2 app extends the previous notes app with new features like live updates, tags and multi-user login.

📣 Show and Tell

We'd love to see what you build with this example! Share your projects and tag @SurrealDB on Twitter!

📞 Join the Conversation

Join our Discord community to stay updated, get your questions answered, and showcase your projects.