An easy web interface for students to complete practice problems and for administrators to create practice problems. Details on the client's goals can be found here
Our CS169 course used ruby '1.9.3'
and rails '3.2.16'
; problems may occur if you are using an older or newer version.
run bundle install
. Be sure to also rake db:setup
to have migrations and test prepare ready to go.
Run rails server
and enjoy your practice problem portal!
- Model
- Title, Tags, Difficulty, Description, Solution
- View
- Index and show
- Controller
- Problems can only be created and modified by Instructors
- Problems can be viewed and completed by Students
- Model
- Email and a hash of completed problems
- View
- Can view profile page to see current progress on problems
- Controller
- Can complete problems after checkmarking completed and hitting save
- Signup from devise
- Model
- View
- Can create or modify problems
- Can view list of all students as well as their progress
- Controller
- Signup from devise
Most coverage completed from rspecs. Tests can be found under /spec
Our group wrote tests for our features, but considering most features were taken from using gems that have been tested already, there was no need to write such tedious tests. Great Coverage was achieved through rspecs.