Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.
/ evaluatjon.com Public archive

Evaluate any Jon you know. Rate him in any metric necessary.

Notifications You must be signed in to change notification settings

cheshire137/evaluatjon.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evaluatjon.com

What is this?

This started as a joke between friends and my boyfriend Jon. The name evaluatjon is a play on Jon's name and "evaluation." I bought the domain name and then I couldn't just sit on it, so this app was born. It lets you rate Jon's different traits and leave a little comment with your rating. Jon can then log in and respond to ratings, as well as delete both ratings and his own responses.

Someone might find use in this as a guestbook, a survey tool, or a fun way to elicit feedback about yourself or anything really. It's built as a Ruby on Rails JSON API back end and an AngularJS front end. I used Bower, Yeoman, and Grunt to develop it.

screenshot

How to Develop

You need Ruby (I recommend RubyInstaller and its DevKit for Windows), RubyGems, Bundler, PostgreSQL, and node.js and npm.

  1. bundle
  2. createuser -P -s -e evaluatjon
  3. rake db:create db:migrate db:seed
  4. cd client
  5. npm install
  6. npm install -g bower
  7. bower install
  8. npm install -g grunt-cli
  9. grunt serve to watch for front end file changes as well as start the Rails server.

How to Test

  1. RAILS_ENV=test rake db:create db:migrate
  2. RAILS_ENV=test rake spec:controllers
  3. RAILS_ENV=test rake spec:models

Feature Tests

These use Capybara Webkit. You will need Qt.

  1. grunt heroku:production to update the contents of public/.
  2. RAILS_ENV=test rake spec:features

How to Deploy to Heroku

  1. git remote add heroku git@heroku.com:yourherokuapp.git
  2. heroku config:set NODE_ENV=production
  3. heroku buildpacks:add https://github.com/jasonswett/heroku-buildpack-nodejs-grunt-compass
  4. heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
  5. git push heroku master
  6. heroku run rake db:migrate
  7. heroku run rake db:seed
  8. heroku ps:scale web=1
  9. Optionally run heroku run rails c to open a Rails console and manually create a user, ideally Jon. This user will be able to create replies, delete replies, and delete ratings. Their replies always show up tagged as Jon.

Thanks

Thanks to How to Wire Up Ruby on Rails and AngularJS as a Single-Page Application.

About

Evaluate any Jon you know. Rate him in any metric necessary.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published