A Simple Authentication Server Written in Rust
Up the database
cd dev
docker compose up -d
build
cargo build
Run
cargo run
Some extra linux packages are needed for it
sudo apt-get install libmariadb-dev-compat libmariadb-dev
export MYSQLCLIENT_INCLUDE_DIR=/usr/include/mariadb
export MYSQLCLIENT_LIB_DIR=/usr/lib/x86_64-linux-gnu
export MYSQLCLIENT_VERSION=10.5.9 # Replace with your installed version
New Table
diesel migration generate new_table
Run
diesel migration run
Note: You have to write sql for migrations which is sequential in nature why bcoz diesel works like that i.e no joins table first then all tables that have kind of joins