- Docker installed on your system
- Java 11
-
Clone the repository:
git clone https://github.com/compass-core-platform/goals-module.git cd goals-module
-
Create a
docker-compose.yml
file in the root directory of the project with the following content:version: '3.8' services: postgres: image: postgres restart: always environment: POSTGRES_DB: your_database_name POSTGRES_USER: your_username POSTGRES_PASSWORD: your_password ports: - "5432:5432"
docker-compose up -d
CREATE TABLE datanode (
id BIGSERIAL PRIMARY KEY,
name VARCHAR,
description VARCHAR,
nodeType VARCHAR,
code VARCHAR,
createdOn VARCHAR,
createdBy VARCHAR,
updatedOn VARCHAR,
updatedBy VARCHAR
);
CREATE TABLE entitynode (
id BIGSERIAL PRIMARY KEY,
dataNodeId BIGINT,
entityId BIGINT,
nodeType VARCHAR,
entityType VARCHAR,
createdOn VARCHAR,
createdBy VARCHAR,
updatedOn VARCHAR,
updatedBy VARCHAR
);
CREATE TABLE property (
id BIGSERIAL PRIMARY KEY,
entityNodeId BIGINT,
propertyName VARCHAR,
propertyValue VARCHAR
);
CREATE TABLE relations (
id BIGSERIAL PRIMARY KEY,
parentId BIGINT,
childId BIGINT
);
spring.application.name=goals
# DB properties
spring.datasource.url=jdbc:postgresql://{host}/your_database_name
spring.datasource.username=your_username
spring.datasource.password=your_password
spring.datasource.driver-class-name=org.postgresql.Driver