Skip to content

OpenHMIS Development VM

Steve Conners edited this page Jul 24, 2015 · 3 revisions

This page contains instructions to provide developers new to the OpenHMIS project with a quick on-ramp to contribution. It contains instructions to deploy a development VM intended for use to contribute to the expansion and refinement of the OpenHMIS project.

This document shall guide the developer through:

  • installing the necessary software (VirtualBox),
  • downloading the VM,
  • (**) Git’ing the most recent code for the OpenHMIS software and demo applications,
  • exercising the demo applications,
  • opening the development environment,
  • (**) making a minor change, and
  • (**) submitting code changes through Git.

(**) Some items have not yet been documented.

See the Access Appendix for usernames and passwords within the VM.

Installing the Necessary Software

We will start by installing the necessary software. Extracting the VM will require a freeware product called 7-zip and running the virtual machine will require a local installation of VirtualBox. 7-zip is a freeware archiving utility built by Igor Pavlov, and VirtualBox is a freeware virtualization product provided by Oracle While the VM runs on a Linux OS (CentOS), it can be run in many environments - Windows, Mac, Linux and Solaris.

  1. Download and install VirtualBox and the VirtualBox Extension Pack. (https://www.virtualbox.org/wiki/Downloads)
  2. When asked, install the network interfaces.

Downloading the VM

We will download the VM (a virtual hard drive including the operating system, software, and OpenHMIS code.

  1. Download the VM currently posted in a Google Drive folder. (https://drive.google.com/folderview?id=0B4u_ywt7L5jucW5BUnhZT3hoV2M&usp=sharing#list)
  2. Extract the VM using 7-zip.
  3. Open the VM in VirtualBox, either by double-clicking pathway.ova or by opening VirtualBox, clicking Start, and browsing to pathway.ova
  4. Login using the username and password found in the Access Appendix.

Git’ing the Most Recent Code

We will upload the VM’s code to the most recent OpenHMIS codebase.

  1. This is not yet documented. Sorry! We are currently looking at implementing EGit and Mylyn in the VM’s Eclipse installation to ease your pain getting the most recent code. Email [email protected] or [email protected] and we’ll work through it together.

Exercising the Demo Applications

We will start by opening the IntakeDemo (http://localhost:8080/IntakeDem/login) and log in using credentials found in the Access Appendix.

  1. (To make this work, the Tomcat service will need to be running. See ‘Opening the Development Environment’ step 4.)
  2. Log in using the credentials found in the Access Appendix.
  3. Select an intake client - enter ‘S’
  4. Play! Let us know what works and what doesn’t. ([email protected] or [email protected])

Opening the Development Environment

The VM has Eclipse pre-installed to allow contributions to the OpenHMIS project.

  1. Open Eclipse.
  2. Accept the default workspace.
  3. You will see the IntakeDemo, OpenHMIS-master, and Tomcat v7.0 Server at localhost-config under Servers.
  4. Highlight the Tomcat v7.0 Server and push the run button to start the Tomcat service.

Making a Minor Change

Pathway’s goal is to provide others with an opportunity to commit real changes to our communities.

  1. This is not yet documented. Sorry! Email [email protected] or [email protected] and we’ll work through it together.

Submitting Code Changes Through Git

This is where you make REAL change, adding new functionality to ALL of our communities.

  1. This is not yet documented. Sorry! We are currently looking at implementing EGit and Mylyn in the VM’s Eclipse installation to ease your pain submitting the most recent code. Email [email protected] or [email protected] and we’ll work through it together.

Access Appendix

These are usernames and passwords used to access applications within the VM.

O/S
username: root
password: pathway

MySQL (open MySQL Workbench)
username: root
password:  

IntakeDemo
(http://localhost:8080/Intakedemo/login)
username: len
password: 12oclockhi
(verify using MySQL Workbench, checking the USER_INFO table)