The application has two roles: Admin and User.
Admin has access to adminPanel, where he can manage all users and create new ones. User can create and manage his own account.
On starting application, the database is initialized with default accounts.
- Last enabled Admin can't delete himself
- Last enabled Admin can't change self role to non-Admin
- Last enabled Admin can't disable self
- After an authorized user deletes himself, he is automatically logged out
- If Admin changes self role to non-Admin, he doesn't have access to adminPanel
- Searching, pagination, sorting
The application is deployed on Heroku.
Here is the link: https://admin-panel-boot.herokuapp.com/
- JDK 8
- Open terminal in project's root directory
./mvnw spring-boot:run
or run the main
method from AdminPanelBootApplication
class.
To view application, visit http://localhost:8080/
To log in as Admin:
username and password: admin
To log in as default User:
username and password: user10 or (user11-user49, user01-user09 are disabled)
Or to log in your own account type your credentials.
To stop application press Ctrl + C
in terminal.
- Spring Boot
- Spring MVC
- Spring Security
- Spring Data JPA
- H2 database
- JUnit
- Lombok
- Logback
- Thymeleaf
- HTML, CSS, JavaScript