Home / Companies / SurrealDB / Blog / Post Details
Content Deep Dive

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

Blog post from SurrealDB

Post Details
Company
Date Published
Author
Pratim Bhosale
Word Count
2,376
Language
English
Hacker News Points
-
Summary

In the second part of a tutorial series on building a notes app with Next.js, Tailwind, and SurrealDB, several enhancements are introduced to the Surreal Stickies application, including multi-user capabilities, authentication, and real-time updates. The new version of SurrealDB 1.0 allows for a more efficient architecture by eliminating the separate API layer previously needed to interact with the database. This tutorial covers the setup of direct database connections, schema creation, and the implementation of tagging features for improved note organization. Authentication is managed within the database itself, with detailed permissions and session handling outlined for user management. The tutorial also integrates Live Queries for real-time updates, enhancing the app's ability to immediately reflect changes across devices. Additionally, the frontend structure is briefly discussed, emphasizing component organization and state management, with the entire project available for exploration on GitHub. The article encourages community engagement and further development through social media sharing and participation in the SurrealDB community.