{"id":978,"date":"2018-04-30T04:36:35","date_gmt":"2018-04-30T04:36:35","guid":{"rendered":"http:\/\/jaipurhosting.com\/blog\/?p=978"},"modified":"2019-04-27T11:57:22","modified_gmt":"2019-04-27T06:27:22","slug":"how-to-set-up-an-analytics-dashbord-in-cent-os-7","status":"publish","type":"post","link":"https:\/\/www.jaipurhosting.com\/blog\/how-to-set-up-an-analytics-dashbord-in-cent-os-7\/","title":{"rendered":"How to set up an Analytics Dashbord in CENT OS 7"},"content":{"rendered":"<p><strong>Description&nbsp;<\/strong><\/p>\n<p>Data is the biggest thing out there right now.<\/p>\n<p>We need to present data in a way that allows for valuable insights to be gained.<\/p>\n<p>One way of achieving such purpose is to make use of a visualization dashboard.<\/p>\n<p>Visualizations of data are the most accessible, as any user, technical or not, can gain insights from them.<\/p>\n<p>Unfortunately, most commercial visualization dashboards are unaffordable for small businesses.<\/p>\n<p>In today\u2019s post we will be focusing on open source dashboards.<\/p>\n<p>There\u2019s many of them. A few that deserve mention are are Metabase, Dashing, Keen Dashboard, Freeboard, and Mozaik. Our focus will be on Mozaik.<\/p>\n<p>We will show you how to set it up in a CentOS 7 server.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mozaik dashboard&nbsp;<\/strong><\/p>\n<p>Mozaik is an open source, powerful and flexible choice for a dashboard.<\/p>\n<p>It\u2019s very easy to add widgets for different data sources.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Features of Mozaik&nbsp;dashboard&nbsp;<\/strong><\/p>\n<p><strong>Scalable layout<\/strong> \u2013 Mozaik dashboards support multiple devices through its adaptive layout. You can either put your dashboard on a big screen in the open space or consult it on your smartphone<\/p>\n<p><strong>Themes support<\/strong> \u2013 Mozaik dashboard comes with 6 themes and makes it easy to develop your own theme<\/p>\n<p><strong>Extendable by modules<\/strong> \u2013 Mozaik widgets are maintained as separate modules, thus available via mozaik-ext-&lt;name&gt; in npm.js<\/p>\n<p><strong>Grid positioning<\/strong> \u2013 Mozaik provides a simple way to define your dashboard layout using a grid system<\/p>\n<p><strong>Optimized backend communication<\/strong> \u2013 Most extensions need to communicate with APIs. Mozaik eases this by providing a backend, which handles API calls and pushes data to widgets through WebSockets<\/p>\n<p><strong>Multi Dashboard Support<\/strong> \u2013 Sometimes, a single dashboard is not enough. Moza\u00efk allows multiple dashboards with no issue.<\/p>\n<p>&nbsp;<\/p>\n<p>Let\u2019s now move onto setting up of Mozaik in a CentOS 7 server. We will be using Mozaik v1<\/p>\n<p><strong>Step 1 :&nbsp;<\/strong><\/p>\n<p>First clone the repository using command- <strong>git clone https:\/\/github.com\/plouc\/mozaik-demo.git<\/strong> as shown below<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps mozaik]# git clone https:\/\/github.com\/plouc\/mozaik-demo.git<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step 2 :&nbsp;<\/strong><\/p>\n<p>Once the cloning is complete, you can see a screen similar to the one shown below<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps mozaik]# git clone https:\/\/github.com\/plouc\/mozaik-demo.git\nCloning into 'mozaik-demo'...\nremote: Counting objects: 358, done.\nremote: Total 358 (delta 0), reused 0 (delta 0), pack-reused 358\nReceiving objects: 100% (358\/358), 196.77 KiB | 0 bytes\/s, done.\nResolving deltas: 100% (187\/187), done.<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step 3 :&nbsp;<\/strong><\/p>\n<p>Next, we need Node.js to be installed in the server. In case you do not have Node.js already, then execute the following commands &#8211;&nbsp;<strong>wget http:\/\/nodejs.org\/dist\/v0.10.30\/node-v0.10.30.tar.gz<\/strong><\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps mozaik-demo]# wget http:\/\/nodejs.org\/dist\/v0.10.30\/node-v0.10.30.tar.gz<\/pre>\n<p>&nbsp;<\/p>\n<p>Then Extract the archive using command- <strong>tar xzvf node-v* &amp;&amp; cd node-v*<\/strong><\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps node-v0.10.30]# tar xzvf node-v* &amp;&amp; cd node-v*<\/pre>\n<p>&nbsp;<\/p>\n<p>Next, in case you do not have gcc\/g++ compiler then use command- <strong>sudo yum install gcc gcc-c++<\/strong><\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps node-v0.10.30]# sudo yum install gcc gcc-c++<\/pre>\n<p>&nbsp;<\/p>\n<p>Post this fire commands .<strong>\/configure<\/strong> and make as shown below. This will configure and compile the software. This will take some time to finish.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps node-v0.10.30]# .\/configure<\/pre>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps node-v0.10.30]# make<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step 4 :&nbsp;<\/strong><\/p>\n<p>Now you can install it using the command- <strong>sudo make install<\/strong>.<\/p>\n<p>Once this is complete you can check the version of node.js, using the command- <strong>node \u2013version<\/strong><\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps node-v0.10.30]# sudo make install<\/pre>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps node-v0.10.30]# node \u2013version\nv0.10.30<\/pre>\n<p><strong>Step 5 :&nbsp;<\/strong><\/p>\n<p>If for some reason the install command fails, the asset generation should be skipped, you can re-run it with command- npm run build<\/p>\n<p>Finally, run the app using command- <strong>node app.js<\/strong>, as shown below<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">[root@vps mozaik-demo]# node app.js<\/pre>\n<p>&nbsp;<\/p>\n<p>With this, we have completed the setup of Mozaik in CentOS 7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description&nbsp; Data is the biggest thing out there right now. We need to present data in a way that allows for valuable insights to be gained. One way of achieving such purpose is to make use of a visualization dashboard. Visualizations of data are the most accessible, as any user, technical or not, can gain [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1306,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=978"}],"version-history":[{"count":2,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/978\/revisions"}],"predecessor-version":[{"id":1555,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/978\/revisions\/1555"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/media\/1306"}],"wp:attachment":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}