Giter Site home page Giter Site logo

folio-org / mod-erm-usage Goto Github PK

View Code? Open in Web Editor NEW
1.0 16.0 5.0 1.15 MB

Store ERM usage statistics and access data to these statistics. Funded by European Regional Development Fund (EFRE).

License: Apache License 2.0

Java 93.74% RAML 4.34% Dockerfile 0.18% PLpgSQL 1.74%

mod-erm-usage's Introduction

mod-erm-usage

Copyright (C) 2018-2023 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Development funded by European Regional Development Fund (EFRE)

Installation

git clone ...
cd mod-erm-usage
mvn clean install

Run plain jar

cd mod-erm-usage-server
env \
DB_USERNAME=folio_admin \
DB_PASSWORD=folio_admin \
DB_HOST=localhost \
DB_PORT=5432 \
DB_DATABASE=okapi_modules \
java -jar target/mod-erm-usage-server-fat.jar

Run via Docker

Build docker image

$ docker build -t mod-erm-usage .

Run docker image

$ docker run -p 8081:8081 -e DB_USERNAME=folio_admin -e DB_PASSWORD=folio_admin -e DB_HOST=172.17.0.1 -e DB_PORT=5432 -e DB_DATABASE=okapi_modules mod-erm-usage

Register ModuleDescriptor

$ cd target
$ curl -w '\n' -X POST -D - -H "Content-type: application/json" -d @ModuleDescriptor.json http://localhost:9130/_/proxy/modules

Register DeploymentDescriptor

Change nodeId in DockerDeploymentDescriptor.json to e.g. your hosts IP address (e.g. 10.0.2.15). Then execute:

$ curl -w '\n' -X POST -D - -H "Content-type: application/json" -d @DockerDeploymentDescriptor.json http://localhost:9130/_/discovery/modules

Activate module for tenant

$ curl -w '\n' -X POST -D - -H "Content-type: application/json" -d '{ "id": "mod-erm-usage-1.0.0"}' http://localhost:9130/_/proxy/tenants/diku/modules

Additional information

Issue tracker

See project MODEUS at the FOLIO issue tracker.

Other documentation

Other modules are described, with further FOLIO Developer documentation at dev.folio.org

mod-erm-usage's People

Contributors

alb3rtino avatar rchr avatar dcrossleyau avatar elsenhans avatar julianladisch avatar koehlers1980 avatar adamdickmeiss avatar dependabot[bot] avatar yaroslav-kiriak avatar

Stargazers

Sean Duffy avatar

Watchers

Ian Ibbotson avatar Owen Stephens avatar James Cloos avatar Charles Ledvina avatar Ian Hardy avatar  avatar Holly Mistlebauer avatar Wayne Schneider avatar Sean Duffy avatar  avatar Annika Schröer avatar Peter avatar Niels Erik avatar Kostas Georgiou avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.