Hygieia Executive uses MongoDB (versions 3.0 and above) as the database to store and retrieve data. Download the MongoDB GUI, such as Robo 3T, to create the database dashboard and successfully connect to it.

Prerequisites

Following are the prerequisites to set up the Hygieia Executive Dashboard:

  • Install GIT - Install Git for your platform. For installation steps, see the Git documentation
  • Install Java - The recommended version is 1.8

Download and Install Instructions

If you do not already have MongoDB installed, download the Installation Package from MongoDB download page and follow the installation instructions provided in the MongoDB manual.

Configuration Steps

Follow the configuration steps to run Hygieia Executive in your MongoDB installation.

  • Step 1: Create Data Directory

    Create a data directory on the drive from which you start MongoDB to store your data files.

    For example, create the data directory in the following path:

    C:/Users/[usernname]/dev/data/db
    
  • Step 2: Change Directory

    Change the current working directory to the bin directory of your MongoDB installation.

    In the command prompt, run th following command:

    cd C:/Program Files/MongoDB/Server/3.2/bin
    
  • Step 3: Start MongoDB

    Specify the path to use as data directory:

    mongod --dbpath [path to the data directory]
    

    Execute the following commands to start MongoDB, switch to analyticsdb, and then add dashboard user:

    #Start mongo
    
    Command: > mongo
    Output:  MongoDB shell version: 3.2
             connecting to: test
    				
    #Switch to analyticsdb
    
    Command: > use analyticsdb
    Output:  switched to analyticsdb
    
    #Create db user
    
    Command: > db.createUser(
                {
                  user: "dashboarduser",
                  pwd: "dbpassword",
                  roles: [
                  {role: "readWrite", db: "analyticsdb"}
                  ]
                })
    				
    Output:  Successfully added user: {
             "user" : "dashboarduser",
             "roles" : [
              {
                "role" : "readWrite",
                "db" : "analyticsdb"
              }
              ]
              }