Skip to content

rgeber/nuxtjs-surrealdb-stickies

Repository files navigation

SurreadDB Nuxt.js Stickies Example

This is an adaptation of the official SurrealDB stickies v2 example created using Nuxt and Vue.

This is not mean for productive use

The example aims to demonstrate the following:

  • How to set up a nuxt project with SurrealDB
  • How to manage frontend users using SurrealDB
  • Using surrealdb.js

Note from the author: My personal goal was to understand SurrealDB better and find a way to use it as a no fuss backend for future web applications.

Usage

Starting the nuxt dev script starts the entire application including the SurrealDB daemon. The daemon is configured to use dev.db as a persistent file storage. You'll find that directory in the project root once SurrealDB was started.

npm run dev

Once SurrealDB is running import the surql files:

find _surql/ -maxdepth 1 -iname "*.surql" -exec surreal import --conn http://localhost:3001 --user root --pass root --ns test --db test {} \;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published