Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau authored Jun 22, 2021
1 parent 120ae83 commit 7218488
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ Install nodejs

Clone the repository at "https://github.com/mHealthKenya/localILConsumerV2" into your desired location

cd into the newly created "localILConsumer" folder
cd into the newly created "localILConsumerV2" folder

Run "npm install"

cd into the "/server" folder

open the connection.js, change the mysql user and password and save
Update the database credentials : sudo gedit .env

run "node connection.js"
Change the username and password according to your credentials

cd into the "/server/db_config" folder
DB_USER = 'root'
DB_PASSWORD = ''
DB_NAME = 'mysql'
NEW_DB_NAME = 'ushauri_il'
DB_PORT = 3306
DB_SERVER = '127.0.0.1'

open the config_local.js, change the mysql user and password and save
cd into the "/server" folder

cd back to the server directory
Create the ushauri database and tables : node connection.js

cd into the "/server/boot" folder

Change the MFL Code in consumer_online.js on line X to reflect the facility's mfl code, also ensure you change the IP address of the IL server on line Y (if it is not running in the same server. Change only the IP address eg "http://127.0.0.1:3007/labresults/sms" to "http://xxx.x.x.x:3007/labresults/sms""
Change the MFL Code in consumer_online.js on line X to reflect the facility's mfl code, also ensure you change the IP address of the IL server on line Y (if it is not running in the same server. Change only the IP address eg "http://127.0.0.1:3007/labresults/sms" to "http://xxx.x.x.x:3007/labresults/sms"

cd back to the "/server/: folder

Expand All @@ -33,4 +36,5 @@ run "pm2 startup"

run "pm2 save"

go to the IL dashboard, under participating systems configure the address for T4A (if it is in the same machine as IL, then http://localhost:1440/hl7_message , otherwise it should point to the machine's IP address as seen by the IL machine, so http://{Ushauri IP}:1440/hl7_message)
Go to the IL dashboard, under participating systems configure the address for T4A (if it is in the same machine as IL, then http://localhost:1440/hl7_message , otherwise it should point to the machine's IP address as seen by the IL machine, so http://{Ushauri IP}:1440/hl7_message)

0 comments on commit 7218488

Please sign in to comment.