Skip to content

DBCDK/promat-service

Repository files navigation

Promat service

Configuration

Environment variables

  • PROMAT_DB_URL database URL (USER:PASSWORD@HOST:PORT/DBNAME) of the underlying promat database.
  • OPENSEARCH_SERVICE_URL opensearch service url
  • OPENSEARCH_PROFILE opensearch profile (optional, default is 'test')
  • OPENSEARCH_AGENCY opensearch agency (optional, default is '100200')
  • OPENSEARCH_REPOSITORY opensearch profile (optional, default is 'rawrepo_basis')
  • WORK_PRESENTATION_PROFILE work-presentation profile (optional, default is 'test')

API

The service exposes a RESTful API.

Development

Requirements

To build this project JDK 11 and Apache Maven is required.

To start a local instance, docker is required.

Scripts

  • clean - clears build artifacts
  • build - builds artifacts and runs unit and integration tests
  • validate - analyzes source code and javadoc
  • start - starts localhost instance
  • stop - stops localhost instance
./clean && ./build && ./validate && PROMAT_DB_URL="..." ./start

License

Copyright Dansk Bibliotekscenter a/s. Licensed under GPLv3. See license text in LICENSE.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages