phumpal / happiness_poll

Measure the happiness of your team with this polling site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Happiness Poll

Measure the happiness of your team with this polling site! Take a test drive at http://happiness-poll.herokuapp.com/.

Local Setup

Clone the repository.

git clone git@github.com:scottsbaldwin/happiness_poll.git

Create a file called airbrake.env and populate the Airbrake variables.

export AIRBRAKE_PROJECT_ID=
export AIRBRAKE_PROJECT_KEY=

Source the env file and startup the application.

source airbrake.env
bundle install
export PORT=5000
foreman start web

Analytics

Google analytics is included, but in order to track properly, you will need to set environment variables for:

  • ANALYTICS_PROPERTY_ID: The Google Analytics property ID, e.g. UA-*
  • ANALYTICS_DOMAIN: The domain you are tracking, e.g. happiness-poll.herokuapp.com

If both variables are set, tracking will be included in the views. If at least one is missing, tracking will be excluded in the views.

If you deploy to Heroku, edit your app settings and create config variables for ANALYTICS_PROPERTY_ID and ANALYTICS_DOMAIN.

About

Measure the happiness of your team with this polling site

License:MIT License


Languages

Language:HTML 42.2%Language:JavaScript 30.9%Language:Ruby 26.6%Language:CSS 0.3%