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.
You need Ruby (I recommend RubyInstaller and its DevKit for Windows), RubyGems, Bundler, PostgreSQL, and node.js and npm.
bundle
createuser -P -s -e evaluatjon
rake db:create db:migrate db:seed
cd client
npm install
npm install -g bower
bower install
npm install -g grunt-cli
grunt serve
to watch for front end file changes as well as start the Rails server.
RAILS_ENV=test rake db:create db:migrate
RAILS_ENV=test rake spec:controllers
RAILS_ENV=test rake spec:models
These use Capybara Webkit. You will need Qt.
grunt heroku:production
to update the contents ofpublic/
.RAILS_ENV=test rake spec:features
git remote add heroku git@heroku.com:yourherokuapp.git
heroku config:set NODE_ENV=production
heroku buildpacks:add https://github.com/jasonswett/heroku-buildpack-nodejs-grunt-compass
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
git push heroku master
heroku run rake db:migrate
heroku run rake db:seed
heroku ps:scale web=1
- 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 to How to Wire Up Ruby on Rails and AngularJS as a Single-Page Application.