1 Star 5 Fork 3

hanting / rust-admin2-common

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
README.md 1.23 KB
Copy Edit Raw Blame History
robin authored 2020-11-07 09:45 . 修改readme

Rust-Admin V2.0

rust-admin2 - 共用代码

开发说明

  1. 目前开发未完成, 请不要使用, 目前代码仅为早期版本, 仅供参考

  2. 本后台管理系统使用 rust 进行全栈开发, 前台使用 yew, 后台使用 actix-web

  3. 数据库使用 postgresql (建议postgresql12及以上版本)

数据文件

数据文件在 rust-admin2-common/scripts/db.sql 当中, 如果要使用可以导入

请使用以下命令导入数据库文件:

sudo -u postgres psql -d 数据库名称 < 路径/db.sql

数据库初始化

-- 写入默认后台角色
insert into admin_roles (name) values ('后台管理员');

-- 生成默认密码密钥
-- 默认用户: admin
-- 默认密码: qwe123
select admin_login_init();

-- 注意: 执行上面操作之后, 一般不用执行下面操作
-- # 初始化管理员信息
-- # 使用上一步操作生成的密码、密钥
insert into admins (name, password, secret, role_id, status) values 
    ('admin','2ed3ec2d961d798c8a0c4da38785c6b8', 'b651f6517e5a621752e5b94820bb145b', 1, 1);
-- # 或者使用以下方式修改密码
update admins set 
        password = '2ed3ec2d961d798c8a0c4da38785c6b8', 
        secret = 'b651f6517e5a621752e5b94820bb145b' 
    where name = 'admin';
Rust
1
https://gitee.com/houhanting/rust-admin2-common.git
git@gitee.com:houhanting/rust-admin2-common.git
houhanting
rust-admin2-common
rust-admin2-common
master

Search