Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 2.17 KB

README.md

File metadata and controls

49 lines (38 loc) · 2.17 KB

Build Status Code Climate Test Coverage Dependency Status

Live API Docs

License

This software is distributed under the MIT license, see the included LICENSE.txt or the OSI page about the MIT license for more information.

Installation

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 to config/database.yml and edit as needed,
  • Create the database if necessary: rake db:create (CAUTION: this will create the database defined in the production section of the database.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).

Operation

Create a new OAuth token

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 are deposit for a token that will allow deposits to a user's account, or admin for a token that will basically allow everything.