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 UI
andReload API
buttons in the top right corner of the table- Clicking
Sync UI
will synchronize the frontend permissions to the database - Clicking
Reload API
will load all backend API permissions into the database
- Clicking
-
Click on the left sidebar
System
-Roles
, enter the role management page. -
Click the
Add
button, add a role, assuming the role name isrole
, and select all permissions except:Button
-Add User
Menu
-System
-Audits
System
-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
username
has therole
role 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
Refresh
to refresh your user data and permission data. After the data is refreshed, the following changes will occur:- The
+ Add
button is no longer displayed, becauserole
does not have theButton
-Add User
permission - The left sidebar no longer displays the
System
-Audit
menu, becauserole
does not have theMenu
-System
-Audit
permission - When you click on the status switch button for users other than
admin
, you will be redirected to an error page, becauserole
does not have theSystem
-User
-Update User Status
API permission
- The
-
Finally, you can assign all the permissions to the
role
role in theSystem
-Roles
page. 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-starter
If you have docker
and docker-compose
installed, you can start the backend service using the following command:
./gradlew build
docker-compose up --build
You 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:bootRun
The following command can be used to start the backend services on a Windows system:
./gradlew.bat service:admin-starter:bootRun
You 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 start
If 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.