Every repository with this icon (
Every repository with this icon (
Calagator
Setup
To use Calagator, you'll need to:
- Install git 1.6.x, a distributed version control system. Read the Github Git Guides to learn how to use git.
- Install Ruby, a programming language. You can use MRI Ruby 1.8.6, MRI Ruby 1.8.7, or Phusion REE (Ruby Enterprise Edition). Your operating system may already have Ruby installed or offer it as a prebuilt package.
- Install RubyGems 1.3.x, a tool for managing software packages for Ruby. If you already have
rubygemsinstalled, you may need to update it by runninggem update --systemas root or an administrator. - Install SQLite3, a database engine. Your operating system may already have Ruby installed or offer it as a prebuilt package.
- Install Ruby on Rails, a web development framework. You should run
gem install rails -v 2.3.4 --no-ri --no-rdocas root or an administrator. - Install Java 1.6.x, a programming language used to run the Solr search server.
Additional, but out of date, instructions can be found at http://code.google.com/p/calagator/wiki/DevelopmentSoftware
Checkout
To get the Calagator source code:
- Follow the Setup instructions above.
- Run
git clone git://github.com/calagator/calagator.gitor equivalent, which will create acalagatordirectory with the source code. Go into this directory and run the remaining commands from there.
Configuration
To configure Calagator:
- Follow the Checkout instructions above.
- Initialize your database, run
rake db:migrate db:test:prepare - Optionally add a geocoding key so maps will display, follow the instructions in the checkout at
config/geocoder_api_keys.yml.exampleand get the key from http://code.google.com/apis/maps/signup.html
Development
To run Calagator in development mode:
- Follow the Configuration instructions above.
- Start the Solr search server by running
rake solr:start - Start the Ruby on Rails web application by running
./script/server(UNIX) orruby script/server(Windows). - Open a web browser to http://localhost:3000/ to use the development server
- Read the Rails Guides to learn how to develop a Ruby on Rails application.
- When done, stop the Ruby on Rails server
script/serverby pressing CTRL-C and stop Solr by runningrake solr:stop.
Customization
If you want to customize your Calagator, do NOT just start modifying files in app, public and themes/default. Please read the instructions in themes/README.txt for how to use the theming system.
Security
This application runs with insecure settings by default to make it easy to get started. These default settings include publicly-known cryptography keys that can allow attackers to gain admin privileges to your application. You should create a config/secrets.yml file with your secret settings if you intend to run this application on a server that can be accessed by untrusted users, read the config/secrets.yml.sample file for details.
Production
Calagator.org runs on Ubuntu Linux, Phusion REE (Ruby Enterprise Edition) and Phusion Passenger.







