Stable | Development |
---|---|
OpenLMIS (Open Logistics Management Information System) is software for a shared, open source solution for managing medical commodity distribution in low- and middle-income countries. For more information, see http://openlmis.org/.
Project Links:
/usr/bin
/etc/profile
file
export PATH="$PATH:/usr/bin/gradle-2.3/bin"
brew install gradle
Node.js
brew install nodejs
Those who install Node.js using Homebrew should export the following (or include in $HOME/.bash_profile
or $HOME/.profile
or $HOME/.bashrc
or $HOME/.zshrc
, depending on your shell.
export NODE_PATH="/usr/local/bin/node"
export PATH="/usr/local/share/npm/bin:$PATH"
> npm install -g grunt-cli
> npm install -g karma karma-coverage
> npm install -g karma-cli
> npm install -g karma-firefox-install
> npm install -g karma-jasmine
modules/openlmis-web/Gruntfile.js
git clone https://github.com/openlmis/open-lmis.git
.master
branch. This is the latest stable code. For the latest development code
checkout the dev
branch.Set up dependencies on submodules & Grunt using:
> cd open-lmis
> git submodule init
> git submodule update
> cd modules/openlmis-web
> npm install
If you're intending to contribute to the OpenLMIS project, please read through CONTRIBUTING.md.
note that new features should be placed in modules and should be managed using git-repo.
gradle idea
to create the IntelliJ project files (may take some time downloading dependencies).A number of country-specific features (eLMIS, VIMS, Moz) are integrated into the project. These are turned off by
default. To turn them on, edit the gradle.properties
file by setting toggleOnCustom = true
.
See https://openlmis.atlassian.net/wiki/display/OP/2.0+Feature+Toggle+Mechanism for more details.
To add features to the toggling mechanism, see Feature Toggle.md in the docs
folder.
gradle.properties
file.gradle clean setupdb seed build testseed run
to start the app.gradle clean setupdb seed build
to just run all of the tests.gradle tasks
:
build
is to build the app.setupdb
is to recreate the database and schema.seed
is to seed in the reference data.testseed
puts in some test data which can be used to browse through basic functionality in the system.run
is to start the embedded jetty server.gradle clean setupdb seed build
to build the WAR.gradle setupdb baseseed demoseed run
to initialize the database and run the server.Once the system is running, you can access the home page at http://localhost:9091/
. You can log into the default instance with: user: Admin123
, pass: Admin123
(case sensitive)
Analysis of Java and Javascript sources can be reported on and visualized using a SonarQube server and the included
sonarRunner
task.
gradle.properties
to point to your Sonar server and database.gradle build sonarRunner
gradle build cobertura sonarRunner
See SonarQube.org for official documentation. For more information on how the OpenLMIS project configures SonarQube see the OpenLMIS sonar-configuration repository.
org.openlmis.core.repository.mapper.FacilityMapperIT > shouldUpdateFacilityWithSuppliedModifiedTime FAILED java.lang.AssertionError at FacilityMapperIT.java:292
This can be caused by the timezone in postgresql.conf
being different than your operating system timezone. To fix, stop the postgresql server, and edit the following line: timezone = 'US/Pacific'
to match your current operating system timezone, then restart the postgresql server.This program is part of the OpenLMIS logistics management information system platform software. Copyright © 2013, 2014, 2015 VillageReach, JSI, and ThoughtWorks.
This site contains code and related material necessary to implement a configuration of the OpenLMIS logistics management information system platform. See https://github.com/OpenLMIS/open-lmis/ for details of OpenLMIS.
This site contains free software: you can redistribute it and/or modify it under the terms of the appropriate license. As this site contains code developed by more than one organization and licensed under different terms you should refer to the license terms stated in each component for details.
The programs and documents on this site are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the applicable License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses.