Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.26 KB

INSTALL.md

File metadata and controls

44 lines (29 loc) · 1.26 KB

Installing OpenHMIS Intake

General Notes:

  • This service requires access to a working copy of the OpenHMIS API (0.x)
  • This service uses NodeJS to run

To create a local build:

The instructions below explain how to set up a development environment capable of running the API endpoints. This section assumes you have already used git to download a local copy of the code base.

In order for those endpoints to function correctly, you must also create a local copy of the schema.

  1. Install NodeJS.

  2. Create and edit a local config/env/local.js file,

  • The host and port should point to the location of the OpenHMIS API
  $> cp config/env/local.js.example config/env/local.js
  $> vi config/env/local.js
  1. Install npm dependencies
  $> npm install

To run the web service:

  1. Using a Command Line Interface, navigate to the root directory of this code base. It should be the one containing server.js

  2. Start the application

  $> node server.js
  • Note: some unix based systems have a name conflict and you must type nodejs server.js rather than node.