The project backend API is generated by LoopBack while the frontend was built using React.
To run the application,
- Install Node.js version 8.10.0 or any greater stable version
- Install git
- Clone the module onto your local machine
cd /var/www git clone https://github.com/BaobabHealthTrust/htsV2
- Install Elasticsearch
- 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
- Install application dependencies by running the command
npm install --save --verbose && npm install pm2 -g --verbose
- Install Redis
- Setup the database by following instructions in the db/ folder
- To run the application, execute
./start.sh
- To automatically start the application on reboot, run the following command and follow the instructions:
pm2 startup
##DDE 3.1 Configuration
-
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.
-
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
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.