This is a Rust backend (Axum) with SurrealDB and Redis. It is a fully functional Auth system. Feel free to use it as a starting point for your own projects.
docker run --name surrealdb \
-p 10086:8000 \
-v ~/surrealdb:/data \
-d surrealdb/surrealdb:latest \
start \
--user root \
--pass root \
rocksdb:/data/mydatabase.dbYou can download the Surrealist to your local machine if you want to use SurrealDB in GUI.
cargo install surrealdb-migrationssurrealdb-migrations applydocker run --name redis \
-p 6379:6379 \
-v ~/redis:/data \
-d redis:latestcp .env.example .envConfigure the .env file.
cargo run