Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Website for a Flying Club
Ruby CoffeeScript JavaScript
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
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
License.txt
README.rdoc
Rakefile
config.ru

README.rdoc

Flying Club Website Application

A Rails 3 application for a Flying Club website. Should run on Ruby 1.8.7 and 1.9.

Quick Start

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).

Users

The website recognizes several user roles:

  • Admin

  • CFI

  • Maintenance

  • Normal User

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                  |
|---------------------+-------------+------------------------|
| joe@foo.com         | joe         | Normal user            |
| admin@foo.com       | admin       | Admin                  |
| maintenance@foo.com | maintenance | Maintenance            |
| cfi@foo.com         | cfi         | CFI                    |
| shy@foo.com         | 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).

Something went wrong with that request. Please try again.