Installation instructions

Fedena requires Ruby,Rails,MySQL and some gems installed.

Installation in Windows :

Step 1: Install Ruby

    Download and install One-Click Ruby Installer for Windows.
    https://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.8.7-p302.exe

Step 2: Install MySQL

  1. Download and install the "essential" version of the MySQL installer v5.0
    http://downloads.mysql.com/archives/mysql-5.0/mysql-essential-5.0.90-win32.msi
  2. (skip this step if you already have MySQL installed)
  3. Copy libmysql.dll from MySQL bin directory (usually C:\Program Files\MySQL\MySQL Server 5.0\bin) to Ruby bin directory (usually C:\Ruby\bin)

Step 3: Setup Fedena

  1. Download Fedena bundle patched source code from Download section. Extract the ZIP/TAR archive and save to a folder (say C:\Fedena).
  2. Now goto the fedena source directory in the command window.
  3. Run the command "gem install bundler --remote" to install Bundler gem.
  4. Run the command "bundle install --local".
  5. Update the MySQL database details in config/database.yml (under "development:")
  6. Run the command "rake db:create". This will create the required database.
  7. If your MySQL user does not have database creation privilages, just create the database from your Database manager and you may skip this step.
  8. Run the command "rake fedena:plugins:install_all". This will populate the database with required tables.
  9. Finally, run the command "mongrel_rails start".This would start the server and it will be accessible at http://localhost:3000
  10. If you want to run Fedena in production mode, run the command "mongrel_rails start -e production". For this, Production database details should be given in config/database.yml

Installation in Ubuntu :

Step 1: Install RVM, Ruby and RubyGems
Run the following commands in terminal.

  1. sudo apt-get install libreadline-gplv2-dev gnupg2 libmysqlclient-dev mysql-server curl
  2. gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  3. \curl -sSL https://get.rvm.io | sudo bash -s stable
  4. source /etc/profile
  5. rvm install 1.8.7
  6. rvm use 1.8.7@global && gem uninstall rake
  7. rvm use 1.8.7
  8. rvm rubygems 1.3.7 --force

Step 2: Setup Fedena

  1. Download Fedena bundle patched source code from Download section. Extract the ZIP archive and save to a directory.
  2. Run the command "gem install bundler" to install Bundler gem.
  3. Run the command "bundle install --local".
  4. Update the MySQL database details in config/database.yml (under "development:")
  5. Open Terminal and navigate to Fedena source. Run the command "rake db:create". This will create the required database.
  6. If your MySQL user does not have database creation privilages, just create the database from your Database manager and you may skip this step.
  7. Run the command "rake fedena:plugins:install_all". This will populate the database with required tables.
  8. Finally, run the command "script/server".This would start the server and it will be accessible at http://localhost:3000

Fedena PDF Settings :

PDF Reports in Fedena are generated using wkhtmltopdf. By default, we have set it to i386. If you are using AMD64, open file config/initializers/wicked_pdf.rb and change "i386" to "amd64"

You can download the wkhtmltopdf binaries from Google Code. After the file is downloaded, update the "exe_path" in config/initializers/wicked_pdf.rb with the Path to binary.