This software is distributed under the MIT license, see the included LICENSE.txt or the OSI page about the MIT license for more information.
Some knowledge of how to install and serve a Rails/Rack application is highly recommended!
- Grab a copy of the program, change dir to that copy,
- Install dependencies:
bundle install
, - Copy the
config/database.yml_example
toconfig/database.yml
and edit as needed, - Create the database if necessary:
rake db:create
(CAUTION: this will create the database defined in theproduction
section of thedatabase.yml
), - Populate the database:
rake db:migrate
, - Serve the app however you see fit (if you use Apache or Nginx, the simplest to set up is probably Passenger, your mileage may vary).
rake oauth:create_app[NAME(,TYPE)]
(Depending on your shell the []
might need separate escaping)
Parameters:
NAME
: The name of the application/token to create. This is mostly relevant for logging. It is recommended to create one for each station/checkout point, but the names can fit your current naming scheme for other stuff, as only operators will see this name.TYPE
(optional): The type of operations permitted. By default/when left blank this will create a checkout-capable token. Other possible values aredeposit
for a token that will allow deposits to a user's account, oradmin
for a token that will basically allow everything.