zgorbe / servicebet

A ruby sinatra app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To setup the project locally, you need to ensure you have the followings installed first:
  - Ruby 1.8.7
  - RubyGems
  - The gems that are listed in setup.sh
  
The project architecture is quite simple. A Sinatra project can follow two styles, this project follows the classic style with config.ru file. 
The main file is the servicebet.rb. HTTP routes are defined in the controller.rb and admin.rb files. 
DataMapper is used for persisting objects. DataMapper classes are defined in the models.rb.
The persistence.rb contains the helper methods of the persistence layer. 
The business.rb contains the helper methods of the business layer.

About

A ruby sinatra app


Languages

Language:Ruby 72.0%Language:CSS 16.8%Language:JavaScript 9.5%Language:Shell 1.7%