Note: Full-stack Rust-Admin 2.0 is under development. The current version is only maintained. Please add WeChat group to communicate
Rust-Admin 2.0 Introduction:
-
Development of the front -end using yew/WASM framework
-
Use Actix-WEB 3.x back end
-
UI uses a paid -authorized version of LAYUI to adjust and optimize (thanks to netizens TARO's enthusiastic support, thank you community)
-
The database adjustment is adjusted to postgresql, and the connection pool management uses SQLX, the database is superior
-
End and back -end separation, data transmission encryption
-
Congenital support distributed deployment
Quantity, please look forward to it.Thank you for your support !!!
X-Admin: http://x.xuebingsi.com/
Layui: https://www.larryms.com/
Actix framework: https://actix.rs/
Performance Testing: https://www.techempower.com/benchmarks/
Tera: https://tera.netlify.com/docs/
rust: 1.40+ / Mysql: 5.6+ / Nginx: 1.0+ (Optional, you need to access it through the domain name/80 port agency method)
/setting.toml.default The default configuration file, please copy it to setting.toml and add ignoring
git clone git@github.com:ngocdo1987/rust-admin.git
cd rust-admin
CREATE DATABASE rust_admin -- Create a database
DEFAULT CHARSET=UTF8
COLLATE=UTF8_GENERAL_CI;
GRANT ALL PRIVILEGES -- Set the user name password
ON `rust_admin`.*
TO 'rust_admin'@'%'
IDENTIFIED BY 'rust-x-lsl';
FLUSH PRIVILEGES;
USE rust_admin; -- Select database
SOURCE scripts/init.sql; -- Import initialization database (please follow the actual path)
-- The following is not necessary, only the front-end use Rust-Vlog
CREATE DATABASE rust_vlog -- Create a VLOG sample database
DEFAULT CHARSET=UTF8
COLLATE=UTF8_GENERAL_CI;
GRANT ALL PRIVILEGES -- Set the vlog user name password
ON `rust_vlog`.*
TO 'rust_vlog'@'%'
IDENTIFIED BY 'rust-x-lsl';
FLUSH PRIVILEGES;
USE rust_vlog; -- Select VLOG database
SOURCE scripts/example-vlog.sql; -- Import the initialized VLOG database (please follow the actual path)
***** * Default user/name: admin / qwe123
Set and generate Nginx configuration file
cp nginx.conf.default nginx.conf #Copy nginx configuration file
cat "/nginx.conf" >> .git/info/exclude #Ignore nginx configuration file
vim nginx.conf #Modify the corresponding domain name, directory, proxy address, port
cargo run #Production mode: cargo run --release