Coder Social home page Coder Social logo

bdronneau / imwatchingyou Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 3.0 498 KB

Dashboard base on dashing for call multiple services

License: MIT License

Ruby 14.15% CoffeeScript 4.30% JavaScript 67.68% CSS 8.10% HTML 5.04% Shell 0.74%
dashboard dashing aws consul

imwatchingyou's Introduction

I'm watching You

Build StatusScrutinizer Code Quality Dependency Status

Install

Vagrant

You can build a virtual machine which will contain all required dependencies to ease development on your machine. You'll need:

Then, you will just have to type vagrant up to install and initialize the machine the subsequent times. You can also access the machine by typing vagrant ssh if you need an access to the generated virtual machine.

NB : The Vagrantfile is based on the official jessie debian box. It will load the configuration which can be found in vagrantfiles/config.yaml. Note that the application can be accessible over 192.168.12.34:3030 by default.

Gems

bundle install

Node modules

npm install

Configuration

Copy config.sample.yml as config.yml and fill the sections you want to use in dashboard

Countdown

In config.yml

countdown:
  myCountDown:  #Id of countdown
    enable: true
    date: 'Jul 27, 2015 00:00:00'

In dashboard.erb

<li data-row="1" data-col="5" data-sizex="1" data-sizey="1">
  <div data-id="idcountdown"  data-view="Countdown" data-title="Text to display" data-end=""></div>
</li>

In infra.rb

#Init count down
config = ConfigApp.new
#We assume countdown hash in config is present
if config.params['countdown'].include? 'myCountDown'
  if config.params['countdown']['myCountDown']['enable']
    send_event(
      'idcountdown',
      title: 'myCountDown finish in',
      end: config.params['countdown']['myCountDown']['date']
    )
  else
    send_event(
      'idcountdown',
      title: 'myCountDown disable',
      end: ''
    )
  end
else
  send_event(
    'idcountdown',
    title: 'myCountDown have no parameters',
    end: ''
  )
end

Usage

bundle exec dashing start

Code styling checkers

Check syntax JS

GULP is using for check syntax of all files (some files are ignored by filesJSToIgnore variable)

node_modules/gulp/bin/gulp.js

One file :

node_modules/gulp/bin/gulp.js --js path_to_file

Check syntax ruby

bundle exec rubocop

Credits

imwatchingyou's People

Contributors

bdronneau avatar eilgin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

imwatchingyou's Issues

AWS - reboot

Description

Currently we

Actions

Get events informations (rebooting ec2, rds ?)

Vendors

Move JS/CSS to vendors folders

Add "box" for the local dev. environment

To ease development and testing on a local machine, it would be nice to have a way to build the platform which will contains all the project dependencies (ruby, gemfile, etc) using standard virt. program like vagrant. What do you think ? Maybe you have some suggestions on the things to integrate (the minimum should replicate the travis env.) ?

I can make the Vagrantfile and do a PR if that suits you.

Add opsgenie

Add opsgenie class for know who is on call, stats of alert (UNACK, ACK,...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.