Informasjonsforvaltning / dataset-catalog

A back end service service for creating dataset catalogues and datasets. Exposes a dcat-ap-no endpoint.
Apache License 2.0
0 stars 0 forks source link
backend registration

dataset-catalog

A back end service for creating dataset catalogues and datasets. Exposes a dcat-ap-no endpoint.

Requirements

Environment Variables

export FDK_BASE_HOST
export LOG_LEVEL
export MONGO_HOST
export MONGO_PORT
export MONGO_USERNAME
export MONGO_PASSWORD
export ORGANIZATION_CATALOGUE_HOST
export OIDC_ISSUER
export OIDC_JWKS
export RABBIT_HOST
export RABBIT_USERNAME
export RABBIT_PASSWORD
export SEARCH_FULLTEXT_HOST

Run tests

Run tests with maven:

mvn verify

Run locally

docker-compose up -d
mvn spring-boot:run -Dspring-boot.run.profiles=develop

Then in another terminal e.g.

curl http://localhost:8080/ping
curl http://localhost:8080/ready

Datastore

To inspect local MongoDB:

% docker-compose exec mongodb mongo
% use admin
% db.auth("admin","admin")
% use datasetCatalog
% db.datasets.find()