Go to file
Jenkins CI Agent 0bc4595732 chore: set snapshot version to 1.0.3-SNAPSHOT 2025-11-14 11:22:35 +00:00
.mvn/wrapper SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
.sonarlint SCRUM-2729: Added support for OWASP SAST Tools 2025-11-12 17:12:03 +05:30
runConfigurations feat(SCRUM-2126): add uat run configuration 2025-09-27 17:21:50 +02:00
wp2-be-audit-dm-client bump to version 1.0.1 2025-10-16 10:04:09 +02:00
wp2-be-audit-dm-server SCRUM-2729: Added support for OWASP SAST Tools 2025-11-12 17:12:03 +05:30
.gitattributes SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
.gitignore SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
CHANGELOG.md SCRUM-2729: Added support for OWASP SAST Tools 2025-11-12 17:12:03 +05:30
Dockerfile feat(SCRUM-2724): Replacing openjdk:21-jdk-slim docker image with eclipse-temurin:21-jre-jammy 2025-11-04 17:05:13 +01:00
README.md SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
lombok.config SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
mvnw SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
mvnw.cmd SCRUM-1099: Added create/read endpoints for audit logs 2025-08-29 12:19:50 +05:30
pom.xml chore: set snapshot version to 1.0.3-SNAPSHOT 2025-11-14 11:22:35 +00:00

README.md

Audit Domain Service

Audit Domain Service is a Spring Boot application built with Maven, providing CRUD operations for managing audit related information.

Features

  • Audit
    • Create
    • Read
    • Find All

Getting Started

Using remote PostgreSQL Server

You can update the following datasource properties to point it to a remote PostgreSQL server in application-local.yaml

audit_dm_datasource_url:
audit_dm_datasource_user:
audit_dm_datasource_password:

Using PostgreSQL server running in docker

In order to run the PostgreSQL in local docker environment, you can use the following docker-compose.yml snippet.

Please make sure to create the directory named pg_data in your user.home directory as it uses it for mounting volume. Otherwise, update the volumes section to point to an existing empty directory.

name: itserr

networks:
  net:

services:

  postgres:
    image: postgres:16
    container_name: postgres
    restart: always
    # set shared memory limit when using docker-compose
    shm_size: 128mb
    environment:
      POSTGRES_DB: itserr_db
      POSTGRES_USER: itserr_user
      POSTGRES_PASSWORD: itserr_pwd
    volumes:
      - ~/pg_data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
    networks:
      net:
        aliases:
          - postgres

You can then use the following commands to start up the docker containers

# replace <docker_compose_file_name> with the actual docker compose file name
docker compose -f <docker_compose_file_name> up -d

Requirements

For building and running the application you need:

  • GIT 2.48.1 +
  • JDK 21 +
  • PostgreSQL 16

Clone the repository

git clone  https://code-repo.d4science.org/Resilience/wp2-be-audit-dm.git
cd wp2-be-audit-dm

Build the project

./mvnw clean install

Run the application

java -jar wp2-be-audit-dm-server/target/<jar-file>

Access the API

  • Base URL: http://localhost:8080/api/v1/dm
  • Swagger UI URL: http://localhost:8080/api/v1/dm/swagger-ui/index.html

Development

Please review this wiki page and follow the guidelines mentioned - Code Management Workflow and Standards