The tenant-service for getting a config file to APIs.
- Java 11
- Docker
(If running from windows - replace / to \ )
./gradlew clean build
-- build the project and run the tests.
(If running from windows - replace / to \ )
./gradlew clean test
-- build and run the tests.
- create and run db container locally
docker run --name postgres-docker \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USERNAME=postgres \
-e POSTGRES_DB=tenant_db \
-p 5432:5432 -d postgres
(Metadata is a default schema type. To generate a default one - execute command without an additional argument)
./gradlew diffChangeLog -PschemaType=tenant
-- generate a migration script for tenant schema./gradlew diffChangeLog
-- generate a migration script for metadata schema