MicroHealthLLC / mRMS

MicroHealth Reports Made Simple
0 stars 1 forks source link

mRMS

MicroHealth Reports Made Simple. Think of it as rocket chat, slack or teams for reporting. You create channels just like those systems however rather than a chat window, its a reporting window that have different reports from your data sets. We tried a few reporting systems but ultimately, they were too complex for the masses to master. So we made it as simple as possible that even the most junior person can create reports. Your data set can be in excel or csv, working on other sources outlined in issues. However, in reality we found every system out there we use can export to excel or csv meaning the reporting system would work on all the data sets out there. You can brand it and configure the social login.

Home

Installation:

update centos yum update

    yum install -y epel-release yum-utils

    yum-config-manager --enable epel

    um clean all && sudo yum update -y

install ruby

    gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

    curl -sSL https://get.rvm.io | sudo bash -s stable

    sudo usermod -a -G rvm `whoami`

    export PATH="$PATH:$HOME/.rvm/bin"

    logout then log back in

    rvm install ruby-2.6.6

    rvm install ruby-devel-2.6.6

    bash -l -c "rvm use 2.6.6 --default"

Install Mysql

    yum install mariadb-server mariadb

    yum install mysql-devel

    mysql -u root -p

    create database mrms_prod CHARACTER SET utf8 COLLATE utf8_general_ci;

    exit

be sure git is installed

    yum install git

and Imagemagick

    Yum install imagemagick

and Redis

    yum install redis

go to /var/www and from there

    cd /var/www/

    git clone https://github.com/MicroHealthLLC/mRMS

    nano /var/www/mRMS/config/database.yml

--enter the password for mysql where it says password then save and exit

go to the cloned directory

    cd /var/www/mRMS

    gem install rails

    gem install bundler

    yum install nodejs

    bundle install

    rails db:setup

    rake db:seed

    rake assets:precompile

generate your secrets for config/secrets.yml

    rake secret

put that output in config/secrets.yml

install passenger phusion

    yum install -y pygpgme curl

    curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo

    yum install -y  passenger || sudo yum-config-manager --enable cr && sudo yum install -y  passenger

install nginx

    passenger-install-nginx-module

choose one. install it into the directory of your choice. but for the conf below, chose /etc/nginx/

edit nginx.conf

    nano /etc/nginx/conf/nginx.conf

Below "http {" section, add these

    passenger_root /usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini;
    passenger_ruby /usr/local/rvm/gems/ruby-2.6.6/wrappers/ruby;
    passenger_instance_registry_dir /var/run/passenger-instreg;

Below "server {" section add these

    passenger_enabled on;
    rails_env production;

restart nginx

you will have to create an nginx service now

    nano /lib/systemd/system/nginx.service

---then this below----

    Description=The NGINX HTTP and reverse proxy server
    After=syslog.target network-online.target remote-fs.target nss-lookup.target
    Wants=network-online.target

    [Service]
    Type=forking
    PIDFile=/run/nginx.pid
    ExecStartPre=/etc/nginx/sbin/nginx -t
    ExecStart=/etc/nginx/sbin/nginx
    ExecReload=/etc/nginx/sbin/nginx -s reload
    ExecStop=/bin/kill -s QUIT $MAINPID
    PrivateTmp=true

    [Install]
    WantedBy=multi-user.target

----end---

Enable nginx service

    systemctl enable nginx

Then start nginx service

    systemctl start nginx

Setup

go to your url of your install

log in with temp account 'admin' with password 'Admin@2018'

go to administration

Change, configure and customize your application. Setup your social login redirect uri as below

https://YourliveSiteDomain/users/auth/linkedin/callback https://YourliveSiteDomain/users/auth/google_oauth2/callback https://YourliveSiteDomain/users/auth/facebook/callback https://YourliveSiteDomain/users/auth/twitter/callback

Microsoft will need these https://YourliveSiteDomain/welcome/onedriveredirect https://YourliveSiteDomain/users/auth/office365/callback https://YourLiveSiteDomain/auth/microsoft_graph_auth/callback

For onedrive https://YourliveSiteDomain/welcome/onedriveredirect