Program for time management in Java
MySQL Download page
-
For Windows Download the Windows Installer, and Install the Workbench, Shell, and MySQL Server.
-
For macOS or linux, download and install the MySQL Workbench, MySQL Shell, and MySQL Server.
Gradle Download page
First we have to open the MySQL shell, for for macOS use mysql -u root -p
Once we are inside MySQL Shell, we create the database:
create database swtDatabase;
Then we create the user:
create user 'manager'@'%'
identified by '0123456789';
Then we grant the user all the privileges:
grant all on swtDatabase.* to 'manager'@'%';
Command for exiting the MySQL server exit;
Use this command inside the project folder ~/stcTimeManagementSoftware
:
graddlew bootRun
Open localhost:8080 in your browser
Passwords encrypted by using Bcrypt Generator
All users password: `123``
Username | Password | Role |
---|---|---|
tomd |
tom123 |
SUPERVISOR |
wilmaw |
wilma123 |
HR |
martind |
martin123 |
EMPLOYEE |
admin |
admin |
ADMIN |
employee |
123 |
EMPLOYEE |
supervisor |
123 |
SUPERVISOR |
HR |
123 |
HR |
superHR |
123 |
SUPERHR |
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
- Thymeleaf
- Spring Boot DevTools
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Handling Form Submission
- Accessing data with MySQL
These additional references should also help you: