Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

This example is meant to show an OpenLMIS v3 Example Extension Module at work

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE.txt
Unknown
LICENSE-HEADER
Notifications You must be signed in to change notification settings

OpenLMIS/openlmis-example-extension

Repository files navigation

WARNING: This is archived. Please see openlmis-stockmanagement-validator-extension and docs.openlmis.org instead

OpenLMIS Example Extension Module

This example is meant to show an OpenLMIS 3.x Example Extension Module at work.

Prerequisites

  • Docker 1.11+

Quick Start

  1. Fork/clone this repository from GitHub.
git clone https://github.com/weronika-ciecierska/openlmis-example-extension.git
  1. Fork/clone openlmis-example repository from GitHub.
git clone https://github.com/OpenLMIS/openlmis-example.git
  1. To assemble the outputs of project and create jar file run docker-compose run builder.
  2. To be able to use extension module with openlmis-example put jar file from build/libs to etc/openlmis/extensions.
  3. Edit configuration file extensions.properties from openlmis-example repository to use your defined extension.
  4. Run openlmis-example and go to http://<yourDockerIPAdress>:8080/extensionPoint to see that the extended implementation of OrderQuantity interface is used.

Example of extensions usage

In the sample repository, the following classes are example of extensions usage:

  • AmcOrderQuantity.java - class extending OrderQuantity interface from openlmis-example repository with Component annotation that contains extension ID.

Extensions & configuration file directory

It is possible to change the path where the jar files and configuration file should be placed. It is defined in docker-compose.yml file of openlmis-example service:

volumes:
    - '/etc/openlmis/extensions:/extensions'

About

This example is meant to show an OpenLMIS v3 Example Extension Module at work

Resources

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE.txt
Unknown
LICENSE-HEADER

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •