A simple Anonynous Forum app using Actix-web, Casbin and Diesel, with JWT support. This example uses Casbin Actix Middleware and Casbin Actix Actor
secret.key.sample to secret.key or create your own key by running head -c16 /dev/urandom > secret.key in command line and copy to /src folder.env.sample to .env.DATABASE_URL with your custom configuration.APP_HOST, APP_PORT, POOL_SIZE with your custom configuration.HASH_ROUNDS, if you insist to do so, please modify the root default password with bcrypt encryption manually (/migrations/2020-07-15-061549_add_root_user/up.sql).cargo run --releaseroot, root password: casbinadmin user with password, then modify the user table in database, alter the role column into 1. Then you have admin permission with user admin.preset.csv contains the casbin policies which you want add in the begining, you can alter it to meet your needs.casbin.conf is the casbin configuration file, you can alter it to meet your needs.preset.csv and casbin.conf.