Flying Club Website Application
A Rails 3 application for a Flying Club website. Should run on Ruby 1.8.7 and 1.9.
Ensure that ruby 1.8.7 or 1.9.2 (or greater) is installed, and it is setup in your path. Then make sure you have bundler installed:
$ gem install bundler $ gem install rake
To run the website:
$ git clone git://github.com/pbm/FlyingClub.git $ cd FlyingClub $ bundle install $ rake db:create $ rake db:migrate $ rake db:seed $ rails server
Then hit localhost:3000/ Login as one of the users (demo login/passwords below).
The website recognizes several user roles:
The following users are installed into the system when you run “rake db:seed”. This will let you explore the various roles of the system. The website recognizes the following roles:
Admin: Able to add, delete and modify users, planes etc.
CFI: Able to verify currency etc.
Maintenance: Able to edit plane equipment and schedule planes for maintenance.
Here is a summary of users installed by `rake db:seed`
| User | Password | Privs | |---------------------+-------------+------------------------| | firstname.lastname@example.org | joe | Normal user | | email@example.com | admin | Admin | | firstname.lastname@example.org | maintenance | Maintenance | | email@example.com | cfi | CFI | | firstname.lastname@example.org | shy | User with high privacy |
Each user is entered at a given membership level. The level determines certain rights within the system (currently, it determines which planes they are allowed to fly and their membership dues).