Skip to content

BaobabHealthTrust/htsV2

Repository files navigation

HIV Testing Services (HTS)

The project backend API is generated by LoopBack while the frontend was built using React.

Setup

To run the application,

  1. Install Node.js version 8.10.0 or any greater stable version
  2. Install git
  3. Clone the module onto your local machine
        cd /var/www
        git clone https://github.com/BaobabHealthTrust/htsV2
    
  4. Install Elasticsearch
  5. Create configuration files in the configs/ folder. That is, for each .example file, copy file and create a .json file then fill in the required data based on the fields
  6. Install application dependencies by running the command
        npm install --save --verbose && npm install pm2 -g --verbose
    
  7. Install Redis
  8. Setup the database by following instructions in the db/ folder
  9. To run the application, execute
        ./start.sh
    
  10. To automatically start the application on reboot, run the following command and follow the instructions:
        pm2 startup
    

##DDE 3.1 Configuration

  1. Make sure the parameters for use_dde and use_art in dde.json are set to false, leave the default values as they are for the other attributes as they are.

  2. The primary configuratiom for DDE 3.1 is in site.json i. First set configuration section for DDE to appear like the following "use_dde": true, "dde_username": "dde_user", "dde_password": "dd_password", "dde_protocol": "http", "dde_host": "dde_ip", "dde_port": "dde_port"

    ii. "use_dde": true or "use_dde": false turns on and off dde 3.1 iii. "dde_protocol": "http" defines protocol DDE is running usually http / https iv. "dde_host": "dde_ip" defines IPV4 where DDE is running v. "dde_port": "dde_port" defines port

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published