- This service requires access to a working copy of the OpenHMIS API (0.x)
- This service uses NodeJS to run
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.
-
Install NodeJS.
-
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
- Install npm dependencies
$> npm install
-
Using a Command Line Interface, navigate to the root directory of this code base. It should be the one containing
server.js
-
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.