Giter Site home page Giter Site logo

abs_admin's Introduction

demo2

Chinese

  • Rock solid (Rust language), high performance, no GC, no memory leaks, no coroutine contention

DDD domain driver,Mysql,Redis, general middleware and database, general enterprise-level framework selection

The separation - both before and after the end, based on [Vue - JS] + [Vue - AntDesign] (https://cn.vuejs.org/) (https://www.antdv.com/docs/vue/introduce-cn/) + Vue-AntDesign-Pro

  • RBAC(5-tables) permission control, including JwtToken authentication login, graphic verification code login, TWO-DIMENSIONAL code scan login, and basic permission management

Progress, functional modules (including (including web front-end and RUST backend))

function (including the web front end and rust back-end) support
dynamic menu (routing table permissions dynamically generated menu)
JWT interceptor check
JWT account password
set permissions/management (father and son, permissions + menu button permissions, cache redis)
Settings/role management (father and son, hierarchical level authority tree, cache redis)
Settings/account management background (hierarchical role tree)
Settings/keys to constant management
JWT graphical verification code + password x
JWT text login (based on redis SMS message) x

The significance of this project

  • high performance, as fast as C++, ultra low memory footprint, support for low-cost servers

  • Stable, smooth deployment, no memory leakage, and no flash rollback

  • Out of the box

(Rust Server-Side Installation) Quick Installation Tutorial

  • 1 Start abs_admin command by using cargo run or cargo build to compile the executable file and execute it.
  • (Optional) Use the docker command to quickly start redis: docker run -it -d --name redis -p 6379:6379 redis
  • (Optional, default database is SQLite, if using MySQL, add rdbc_mysql dependency to Cargo.toml and modify db_url in application.json5) Use the docker command to quickly start MySQL. For production, it is recommended to deploy the HTTP service and not use docker to deploy the database. docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 --name mysql -e TZ=Asia/Shanghai mysql:5.7
  • cmd or terminal run command cargo run

(Front-end Node service installation) Quick installation tutorial

  • 1 (front) read and front-end cloning project at https://github.com/rbatis/abs_admin_vue , and install nodejs

    1. (front-end installation) Use yarn install to install dependencies and run the yarn serve command to start the web front-end
    1. (Front-end installation) Open the browser http://localhost:8001 to log in to the background

(Postman import) tutorial

    1. (Postman installation) Install postman. Import postman.json to Postman to use the written request
Open postman and import postman.json
    1. (Postman installation) Import the ABS_admin project using the Clion clone, click main.rs and click the button to run. Or execute a command:
cargo update

cargo run

module(module)

  • JWT token Auth(Permission authentication based on JWT token)

  • Role,User,Reource (Role,User, permission)

abs_admin's People

Contributors

denveryan avatar eumji025 avatar peanut-cc avatar zhuxiujia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

abs_admin's Issues

cargo run报error[E0659]

系统环境:

mac系统最新版本,

Rust最新版本.

报错如下:

error[E0659]: `parse_quote_spanned` is ambiguous
   --> /Users/richard/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/pin-project-internal-0.4.28/src/pin_project/derive.rs:865:67
    |
865 |                 proj_generics.make_where_clause().predicates.push(parse_quote_spanned! { span =>
    |                                                                   ^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
    = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `parse_quote_spanned` could refer to the macro defined here
   --> /Users/richard/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/pin-project-internal-0.4.28/src/utils.rs:23:1
    |
23  | / macro_rules! parse_quote_spanned {
24  | |     ($span:expr => $($tt:tt)*) => {
25  | |         syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
26  | |     };
27  | | }
    | |_^
note: `parse_quote_spanned` could also refer to the macro imported here
   --> /Users/richard/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/pin-project-internal-0.4.28/src/pin_project/derive.rs:7:5
    |
7   |     *,
    |     ^
    = help: use `self::parse_quote_spanned` to refer to this macro unambiguously

error[E0659]: `parse_quote_spanned` is ambiguous
   --> /Users/richard/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/pin-project-internal-0.4.28/src/pinned_drop.rs:108:21
    |
108 |             *path = parse_quote_spanned! { path.span() =>
    |                     ^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
    = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `parse_quote_spanned` could refer to the macro defined here
   --> /Users/richard/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/pin-project-internal-0.4.28/src/utils.rs:23:1
    |
23  | / macro_rules! parse_quote_spanned {
24  | |     ($span:expr => $($tt:tt)*) => {
25  | |         syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
26  | |     };
27  | | }
    | |_^
note: `parse_quote_spanned` could also refer to the macro imported here
   --> /Users/richard/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/pin-project-internal-0.4.28/src/pinned_drop.rs:3:50
    |
3   | use syn::{spanned::Spanned, visit_mut::VisitMut, *};
    |                                                  ^
    = help: use `self::parse_quote_spanned` to refer to this macro unambiguously

For more information about this error, try `rustc --explain E0659`.
error: could not compile `pin-project-internal` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

file not found for module `auth_actix`

Compiling abs_admin v0.1.0 (D:\wrust\abs_admin)
error[E0583]: file not found for module auth_actix
--> src\middleware\mod.rs:2:1
|
2 | pub mod auth_actix;
感覺是少上傳了

cargo run failed

error: custom attribute panicked
--> src/domain/mapper/sys_dict.rs:2:1
|
2 | crud!(SysDict {});
| ^^^^^^^^^^^^^^^^^
|
= help: message: [rbatis] parse py_sql fail!: E("[rbatis] express trim value must be string value, for example: trim 'value',error express: \',\'")
= note: this error originates in the macro $crate::impl_insert (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function delete_by_column_batch in this scope
--> src/domain/mapper/sys_user_role.rs:2:1
|
2 | crud!(SysUserRole {});
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
= note: this error originates in the macro $crate::impl_delete (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function select_list_in_user_id in this scope
--> src/domain/mapper/sys_user_role.rs:3:26
|
3 | impl_select!(SysUserRole{select_list_in_user_id(user_ids:&[String])=>
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0425, E0762.
For more information about an error, try rustc --explain E0425.

Connect sqlserver 2012 time out

environment: macos 13.4.1, Rust 1.73 , sql server 2012

Abs_admin (rbatis: 4.5.2) latest version, deadline: 2023/11/16

image
image

The above project is in the ubuntu environment, modify /etc/ssl/openssl.cnf
CipherString = ALL:@SECLEVEL=0

can run normally

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.