-
Open Terminal.app
-
Install RVM:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
-
Get a coffee
-
Activate RVM:
source /Users/<username>/.rvm/scripts/rvm
-
ruby --version
should now give 2.1.0 or similar -
Add
source /Users/<username>/.rvm/scripts/rvm
to your ~/.bash_profile if you don't want to run it every time you open Terminal.app -
gem install dashing
-
Get another coffee
-
Make a project folder and cd into it
-
dashing new projectname
-
cd projectname
-
bundle
-
More coffee
-
dashing start
-
Try localhost:3030 in your web browser, you should see widgets
-
Turn off the server with ctrl+c
-
Edit projectname/dashboards/sample.erb, adding the following widget list item:
<li data-row="1" data-col="1" data-sizex="2" data-sizey="2"> <div data-id="freshdesk" data-view="Freshdesk" data-title="Freshdesk Tickets"> </div> </li>
Alternatively, you can set the html of the entire page to the following if you just want the freshdesk widget:
<% content_for :title do %>My super sweet dashboard<% end %> <div class="gridster"> <ul> <li data-row="1" data-col="1" data-sizex="2" data-sizey="2"> <div data-id="freshdesk" data-view="Freshdesk" data-title="Freshdesk Tickets"></div> </li> </ul> </div>
-
Make a new directory 'freshdesk' under projectname/widgets and cd into it
-
curl https://gist.github.com/bmease/6706542/raw/17dbe27d1e90e3251ffe967a53998a452e4c6add/freshdesk.coffee > freshdesk.coffee
-
curl https://gist.github.com/bmease/6706542/raw/1af6d2431b2c72717e07144344724c1dc95d213a/freshdesk.html > freshdesk.html
-
curl https://gist.github.com/bmease/6706542/raw/6e3ca033160aeee1da89309ca5777e794128133d/freshdesk.scss > freshdesk.scss
-
cd into the projectname/jobs directory
-
curl https://gist.github.com/bmease/6706542/raw/7f215f1e0cdadd49fd641d31c59140b22ffca2f2/freshdesk.rb > freshdesk.rb
-
Edit projectname/jobs/fresh desk.rb and make the necessary changes to FRESHDESK_URL and FRESHDESK_USERNAME (you can get the username/API key from your freshdesk profile page)
-
dashing start
-
Try localhost:3030 in your web browser
Last active
January 2, 2016 16:19
-
-
Save evanbrumley/8329614 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment