OpenTeleRehab Installation

Requirements

Local Environment with Docker

  • Clone project to your development workspace

    git clone https://github.com/OpenTeleRehab/Distribution.git ~/dev/docker-projects/hiv/distribution
  • Navigate to your project

    cd ~/dev/docker-projects/hiv/distribution sudo chown -R ${USER}:${USER} .
  • Run script to set up

    chmod u+x local_setup/setup.sh ./local_setup/setup.sh

    Note: Actually, the script is trying to kill all conflict ports but sometimes it could not. So if there are conflict ports, you have to kill it first then rerun the script. Here is the command to kill the port in Linux: sudo kill $(sudo lsof -t -i:PORT_TO_FREE).

  • Verify installation by visiting the site below:

Configure Environment Variables

Edit vi ../admin-service/.env by replacing value for KEYCLOAK_BACKEND_SECRET getting from hi Realm -> Clients

Edit vi ../therapist-service/.env by replacing value for KEYCLOAK_BACKEND_SECRET getting from hi-therapist Realm -> Clients

Migrate Database Tables

Access database via user interface: http://localhost:8060/

Enjoy your development on admin-web-app or therapist-web-app

Useful Docker Command

  • Manually up docker

  • Manually kill running docker

Key Generate

Import Translation Key

Import Service Authentication Backend User

Rocket Chat Configuration

Please follow Installation Doc

Common Issues

  • Invalid ssl certificate

    • Download fullchain.pem, privkey.pem files, and replace them into ./config/docker/ssl/. Then please restart the docker containers.

 

OpenTeleRehab - Powered by Humanity & Inclusion