Install Java
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Install mongo db
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Edit following file and add contents
sudo vi /etc/systemd/system/mongodb.service
----------------------------
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
[Install]
WantedBy=multi-user.target
----------------------------------
start mongodb
sudo systemctl start mongodb
sudo systemctl status mongodb
sudo systemctl enable mongodb
create db and user in mongo.
use dashboarddb
db.createUser(
{
user: "dashboarduser",
pwd: "dbpassword",
roles: [
{role: "readWrite", db: "dashboarddb"}
]
}
)
Install other required software.
sudo apt-get install nodejs-legacy
sudo apt-get install ruby
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo apt-get install npm
sudo npm install -g bower
sudo npm install -g gulp
sudo apt-get install gdebi
wget http://ppa.launchpad.net/natecarlson/maven3/ubuntu/pool/main/m/maven3/maven3_3.2.1-0~ppa1_all.deb
sudo gdebi maven3_3.2.1-0~ppa1_all.deb
sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn
sudo apt-get install git
checkout hygieia code.
mkdir Hygieia
cd Hygieia
git clone https://github.com/capitalone/Hygieia.git .
Build code.
mvn clean install
-------------------------------
cd UI
UI$ gulp serve
UI starts on port 3000
Start API:
Create dashboard.properties in Hygieia/api folder.
Hygieia/api$ vi dashboard.properties
Add following content.
-----------------------------
# dashboard.properties
dbname=dashboarddb
dbusername=dashboarduser
dbpassword=dbpassword
-----------------------------
Now start API.
Hygieia/api$ java -jar target/api.jar --spring.config.location=dashboard.properties -Djasypt.encryptor.password=hygieiasecret
And then you can start the collectors you want.












