This is a Spring based Java application that monitors and reports certain events in a connected RDBMS.
You can build the application via calling
- Clone the application from GitHub via running
git clone https://github.com/danielkocsis/database-action-monitor.git
from a local directory - Go to the source directory of the application via
cd database-action-monitor
- Build the application via calling
mvn clean install
-
Run the following command from the home directory after you build the application
java -jar target/database-action-monitor-0.0.1-SNAPSHOT.jar
- Open a browser and go to URL:
localhost:8080
and click on theConnect
button - Insert some data, but there are multiple ways to do that:
- Through Swagger UI: go to URL
http://localhost:8080/swagger-ui.html
- Through H2 Console UI: go to URL:
http://localhost:8080/h2-console
- Send a POST request to
http://localhost:8080/api with JSON content
{ "name": "string", "new": true }
- Through Swagger UI: go to URL
The application has Docker support, in order to run the application along with MySQL please run the following commands from the home directory:
mvn clean deploy
docker-compose up