Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.36 KB

File metadata and controls

69 lines (46 loc) · 1.36 KB

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"