Skip to content

Nithin1506200/surrealDbLiveQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surreal db with live query and authentication

  • make single namespace , memory layer live query

  • db : db

  • install surreal db

  • install rust

Step 1 : setup db

  • start db : surreal start --user root --pass root memory
  • migrate db : surreal import --conn http://localhost:8000 --user root --pass root --ns test --db test db/migrationV1.surql

Step 2 : start backend

cd server
cargo run

Step 3 : start FE

Tech stacks

  • Frontend : Nextjs, Tailwind , Typescript

  • Backend : Rust , actix-web

  • Database : SurrealDb

  • fe : localhost:3000

  • be : localhost:8001

  • db : localhost:8000

start project

  1. db :
    surreal start --user root --pass root memory
    surreal import --conn http://localhost:8000 --user root --pass root --ns test --db test db/migrationV1.surql
  1. BE :
    cd server
    cargo run
  1. FE :
    cd client

enums

  • status : NEW | SUCCESS | FAILED

Default users

user name password email role access
root root root@surreal.com admin *
viewer viewer viewer@surreal.com viewer ns:"test" db : "test"

About

surreal db live query with react js .

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages