Web Portal

Topics

Introduction

The iFAB Foundry Web Portal is a website for monitoring the status of the iFAB Foundry analysis server, viewing submitted jobs and their results, and performing various administrative tasks. The Web Portal also serves as the endpoint for receiving designs submitted from the Manufacturing Augmentation Analysis Tool.

Requirements

  1. A Linux system (Tested openSuse, SLES 11 SP3, Cent OS 6.5)
  2. Ruby Version Manager (RVM)
  3. Ruby (Tested 1.9.3, 2.0.*, 2.1.*)
  4. Postgres Development Package (e.g., libpq-dev)

Installation Instructions

Note

Installation instructions may vary from system to system. All commands run as a non privileged user that has access to sudo privileges.

  1. Install RVM - Visit http://rvm.io and follow install instructions
  2. Install Ruby
    • Run “rvm install ruby”
    • Install will prompt for sudo password to install ruby dependencies
  3. Install Bundler - Run “gem install bundler”
  4. Install the Postgres Development package (e.g., libpq-dev)
  5. Install Gems - Run “bundle install” from the top level project folder
  6. Setup the Database
    • Start the iFAB Foundry Analysis Server PostgreSQL database server
    • Create a new database user and database
    • Edit config/database.yml and update the host, database, username, and password fields
    • Run “bundle exec rake db:migrate”
  7. Create a new secret token in config/initializers/secret_token.rb
  8. Launch the web server - Run “bundle exec rails s”