Please select a faster frontend page address to view the demo:
- Netlify: https://admin-starter.netlify.app/
- Self-hosted: https://admin-starter.u3d.cc/
You can follow the steps below to experience the basic functions.
Note that during your operation, other accounts may be operating concurrently.
Ensure that your operation steps are not affected by other accounts.
If you encounter any issues, please submit an issue.
-
Register an account, assuming the username is
username, and register successfully to log in to the system- New registered accounts have the administrator role by default.
-
Click on the left sidebar
System-Permissions, enter the permission management page, and click on theSync UIandReload APIbuttons in the top right corner of the table- Clicking
Sync UIwill synchronize the frontend permissions to the database - Clicking
Reload APIwill load all backend API permissions into the database
- Clicking
-
Click on the left sidebar
System-Roles, enter the role management page. -
Click the
Addbutton, add a role, assuming the role name isrole, and select all permissions except:Button-Add UserMenu-System-AuditsSystem-User-Update user status
-
Click on the left sidebar
System-Users, enter the user management page, and search for your own user byusername -
Click on the right-hand side
···-Edit, in the edit box, select only the newly created rolerole, and save the changes- At this point, your user
usernamehas therolerole and all the permissions ofrole, except for the three permissions that were not selected
- At this point, your user
-
Click on the top right corner of the page, select
Refreshto refresh your user data and permission data. After the data is refreshed, the following changes will occur:- The
+ Addbutton is no longer displayed, becauseroledoes not have theButton-Add Userpermission - The left sidebar no longer displays the
System-Auditmenu, becauseroledoes not have theMenu-System-Auditpermission - When you click on the status switch button for users other than
admin, you will be redirected to an error page, becauseroledoes not have theSystem-User-Update User StatusAPI permission
- The
-
Finally, you can assign all the permissions to the
rolerole in theSystem-Rolespage. After refreshing the user data, you can view the effect.
To run the project, you need to first clone the source code and navigate to the project's root directory.
git clone git@github.com:jinganix/admin-starter.git
cd admin-starterIf you have docker and docker-compose installed, you can start the backend service using the following command:
./gradlew build
docker-compose up --buildYou need to install JDK with the corresponding version specified in .tool-versions. Start a MySQL database and Redis.
Modify the application-local.yml file to configure the backend services of the project.
The following command can be used to start the backend services on a Linux or macOS system:
./gradlew service:admin-starter:bootRunThe following command can be used to start the backend services on a Windows system:
./gradlew.bat service:admin-starter:bootRunYou need to install node.js with the version specified in .tool-versions.
git clone git@github.com:jinganix/admin-starter.git
cd admin-starter/frontend/admin
npm install
npm startIf you are interested in reporting/fixing issues and contributing directly to the code base, please see CONTRIBUTING.md for more information on what we're looking for and how to get started.