Skip to content

sboursault/meteor-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-dashboard

Meteor-dashboard is a sample application to show how to pick data from external apis to generate a dashboard.

The code base generates a dashboard to monitor the number of jira issues opened on some specific features (or products).

sample_dashboard

Meteor-dashboard is based on https://www.meteor.com/ (No link with the 1979 movie).

Run metor-monitor

To run the application, you need first to install meteor : https://www.meteor.com/install

git clone https://github.com/sboursault/meteor-dashboard.git
cd meteor-dashboard
meteor

and open your browser to http://localhost:3000/

First steps

In imports/jira-query-monitor/client/index.js, define the url for your jira instance and the filters you want to monitor:

const jiraUrl = 'https://jira.atlassian.com';

const jiraQueryMonitorArray = [
  { id: 'product1', title: 'product A', jql: 'assignee="copain"' },
  { id: 'product2', title: 'product B', jql: 'priority in (Low)' },
  { id: 'product3', title: 'product C', jql: 'priority in (High, Medium)' },
  { id: 'product4', title: 'product D', jql: 'priority in (Medium, Low)' }
];

In imports/jira-query-monitor/client/template.html, define the main template:

<h1 class="page-header">Issues detected {{ affectsVersion }}</h1>
<div class="flexrow">
  {{#each jiraQueryMonitors }}
    <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
      <h2>{{{ title }}}</h2>
      <p id="{{id}}" class="well"></p>
      {{ runMonitor }}
    </div>
  {{/each}}
</div>

If necessary, you can use a specific account to connect to the jira server. Set the http in options imports/jira-query-monitor/server/connector.js:

const httpOptions = {/*auth: '<user>:<passwd>'*/};

Run tests

To run the automatized tests, execute the following command

meteor test --driver-package practicalmeteor:mocha --port 3100

and open your browser to http://localhost:3100/

Resources

About

Build your dashboard with Meteor !

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors