Skip to content

bobar/tdfb

Repository files navigation

Code Climate

Setup tdb database with user bob

  • Run mysql
  • CREATE DATABASE tdb;
  • CREATE USER 'bob'@'localhost' IDENTIFIED BY 'zde';
  • GRANT ALL PRIVILEGES ON tdb.* TO 'bob'@'localhost';
  • FLUSH PRIVILEGES;
  • Exit mysql ands run the rake task rake "db:sync_from_save[gmailpassword]"

Adding a new theme

Here are the steps to follow:

  • Download your bootstrap theme (for instance from http://bootstrap-live-customizer.com/) into app/assets/stylesheets/themes
  • Run gsed -ri "/^\s+(margin[:-]|padding[:-]|(min-)?height:|(border-)?width:|font-family:\s['\"]|font-size:|font-weight:|line-height:).*$/d" theme.scss
  • Run gsed -rzi "s/([{}])[^{}]*\{\s*\}/\1/g" theme.scss multiple times until it doesn't change anything anymore (check output of wc -l theme.scss)
  • Add it to the navbar menu in application.html.erb

Adding a new Highcharts theme

Running the electron app

  • npm install
  • electron . or npm start