This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### finish (yo) scaffolding by installing modules | |
sudo npm install | |
# this are usually missing | |
sudo npm install grunt grunt-karma karma-phantomjs-launcher karma-jasmine --save-dev | |
### Run protractor | |
webdriver-manager start | |
protractor ./protractor.conf.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 3. wait few days (weeks) to gather data :) | |
# 4. display results by this rake task sorted from most frequent action to least frequent action | |
# rake action:show_frequency | |
# 5. The rule 80/20 says - users are doing 20% of actions in 80% of time | |
# -> increase performance, improve user experience, ... of these actions | |
namespace :action do | |
desc "This tasks shows freuquency of requests" | |
task show_frequency: :environment do | |
sum = Action.sum(:count) | |
Action.all.order('count desc').each_with_index do |a, index| |