Configuration - maneeshpal/Drata GitHub Wiki
Drata runs on your network. That means, you don't have to login to any external application to access it. Drata runs on node. So you may install it on windows as well as linux based servers. Installing and configuring Drata is a piece of cake.
$sudo apt-get update
$sudo apt-get install nodejs
$sudo apt-get install npm
4.Install MongoDB
$sudo apt-get install git
You may install node directly from http://nodejs.org/download/.
This should install npm as well (node package manager)
2.Install MongoDB
I suggest you install MongoDb using homebrew. It is mentioned on mongo website. Trust me, it will save you some extra work.
You may install both Git and a client using https://mac.github.com/
or you may install it from http://git-scm.com/download/mac
1.Install Node
This should install npm as well (node package manager)
2.Install MongoDB
You may install both Git and a client using https://windows.github.com/
or you may install it directly from http://git-scm.com/download/win
First, clone the Master branch.
then, install all the project dependancies for Drata
$sudo npm install
Now, create a new file "config.json" in routes/ and copy the JSON structure from routes/config.json.template. Set your Database information in that file as shown below.
{
"broadcastDashboardUpdates" : true,
"logRequests": true,
"dataSources" : [{
"alias" : "alias_name_for_server",
"serverName": "actual_server_name",
"port" : PORT_NUMBER,
"type": "mongodb",
"username": "username", <-- Optional
"password": "pwd" <-- Optional
},{
"alias" : "alias_name_sql_server",
"serverName": "actual_server_name",
"type": "sqlserver",
"username": "username",
"password": "pwd"
}],
"drataInternal" : {
"serverName": "localhost",
"port" : 27017,
"databaseName": "drataStore"
}
}
"dataSources" is an array, so you may configure as many database servers as you want.
"drataInternal" is the database that Drata uses internally to store your dashboard information. So it is separated out from other data sources.
"type" is the enum that identifies whether the database server is MongoDB or MS Sql Server. Currently Drata supports only those 2 types of database servers.
"broadcastDashboardUpdates": Drata uses sockets to broadcasts any updates that were made on a dashboard to other browser clients accessing the same dashboard in order to maintain sync. If that gets annoying, you can always turn it off. I highly recommend keeping it turned ON, so others don't overwrite the changes you make on a widget.
"logRequests": Super simple page hit log to track every page load. Just in case if you need to draw analytics on Drata itself.
No need to specify username and password for Mongo Instance if your database doesn't have authentication setup.
######‘Alias’ property should be unique to properly identify the datasource.
$mongod
$node app.js
You may configure mongo and node as a service so it runs as a background job.