The task is to create a page where 10 random questions are asked, answers captured and then a total score at the end based on the money column of the data.
Jeopardy is powered by Sinatra
Once completed, please zip your finished work folder in its entirety and email it to your contact at clixifix®.
- Sinatra documentation (server side) [http://sinatrarb.com/intro.html]
- Ruby Docs
Jeopardy requires Ruby 2.6.6 to run, I'd recommend running the following if you don't have it installed:
Note I have Ruby 2.7.0 installed, ymmv.
Install RVM then install Ruby 2.6.6, we will do something similar for the clixifix application.
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
rvm install ruby-2.6.6
rvm use 2.6.6
Pull down the codebase and install all key dependancies
git clone https://github.com/clixifix/jeopardy.git
cd jeopardy
bundle install
If you're editing anything other than ./views/
files, you'll need to restart the webserver for changes to take effect by doing CTRL + C and rerun
cd jeopardy
ruby app.rb