Create your version of a "Would you rather…?" site like rrrather.com. The idea is that users are posed tough questions and offered the option to answer and see how others responded when asked the same questions. Remember the goal for today is to use AJAX. If you complete the first three user stories (including testing and implementing AJAX), create additional user stories to continue to enhance your site with additional AJAX features, other tools you have previously learned or new processes that you'd like to learn.
Here are the user stories to begin:
As a user, I want to be able to see a list of questions to vote on so that I can have fun taking a survey. (To begin, consider text only questions, that record the answer and add an indicator for which was selected (text or css).) As a user, I want to be able to choose an answer so that I can see how many others also made the same selection as I did. (Use AJAX to process answer and return totals for each response. Hint: consider using group and count methods.) As a user, I want to be able to add a comment to a question to share my opinion about the selection that I made. (Use AJAX to show comment fields and process values.)
git clone https://github.com/maldonmeehan/rather-clone.git
gem install rails
bundle install
rake db:create
rails db:migrate
rake db:seed
rake db:test:prepare
- Start the project with
rails server
- Visit your app at http://localhost:3000.
- None.
Please contact us with any questions, concerns, or ideas.
- Ruby
- Rails
- Devise
- AJAX
- PostgreSQL
- HTML/CSS
- Bootstrap
MIT License
Copyright (c) 2016 Cory Olson and Maldon Meehan