Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Web App for NTU Freshmen to apply their wish dormitory next year, and shuffle the results for them
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

Introduction
It's an application system for NTU freshmen to apply their wish dormitories and roommates. 

Application State
For administrators, to use this system you have to import all graduate student data and all data of the students who are currently living in the scholl dormitory. Second, you should modify the announcement of application rules and candidate dormitory information in the view. And then wait for students' application and due date. 

Shuffle and Announce the Result
Every management action require authorize. First login manager's identity in /manage/index, request /manage/backup all data and request /manage/recover to recover data backuped in the backup action. Request /manage/init initialize the application data, and request /manage/getseed to give every applicants a random seed number to be the shuffle order, in this step, you can have assigned seeds to some students who have to be treated as the lowest priority in the shuffle action. Finally, request /manage/shuffle and you'll get shuffle results for the dormitory assignment.

Configuration
1. you have to manually add config/database.yml to specify a database adapter, I used to connect by mysql.
2. you have to change the password of the manager in app/controllers/manager_controller.rb

Todos
1. manage panel's permission controll should use before-filter to implement.
2. manager's password should be defined in config file or use devise directly.
3. This sytem is not properly tested...
Something went wrong with that request. Please try again.