Skip to content

mHealthKenya/ushauriILDashboard

Repository files navigation

Linux / Debian Installation

Navigate to the opt directory : cd /opt

Install git if it is not present : sudo apt-get install git

Install nodejs if it is not present : sudo apt-get install nodejs

Clone the repository : git clone https://github.com/palladiumkenya/ushauriILDashboard

cd into the newly created "UshauriILDashboard" folder

Run "npm install"

Open the .env file, update the username and password according to your mysql credentials, then save

run "sudo pm2 start npm -- start"

run "sudo pm2 startup systemd"

run "sudo pm2 save"

Windows Installation

Download the following codebase : https://github.com/palladiumkenya/ushauriILDashboard

Copy and Paste the UshauriDashboard folder in Program Files in the Local Disk C Drive.

cd into the newly created "UshauriILDashboard" folder

Open the command line and run : npm install

Open the .env file, update the username and password according to your mysql credentials, then save

run "pm2 start npm -- start"

run "pm2 startup"

run "pm2 save"

Docker Setup

git clone https://github.com/palladiumkenya/ushauriILDashboard

cd into the newly created "UshauriILDashboard" folder

Open the .env file, update the username and password according to your mysql credentials, then save

BUild the latest ushaurliILDashboard using command: docker build -t ushauridahsboard .

Run the newly built ushaurliILDashboard using command: docker run -d -p 3001:3001 ushauridahsboard:latest

You can now access the server at http://localhost:3001