Developer track Marta Ribeiro
Objectives DMPonline data structure Prerequisites Gems Steps to run RoR What’s next? 10th November 2015Roskilde University, Copenhagen
DMPonline data Institution User DMP Project Funder DMP Template Guidance 10th November 2015Roskilde University, Copenhagen
DMPonline data Institution User DMP Project Funder DMP Template Guidance Users Templates Guidance DMPs 10th November 2015Roskilde University, Copenhagen
Prerequisites DMPonline is a Ruby on Rails application, and currently we are running it Intel(R) Xeon(R) 2.50GHz Red Hat Enterprise Linux Server v 6.7 Ruby 2.0.0p247 Rails MySQL server v5.0 or greater. 10th November 2015Roskilde University, Copenhagen
Gems source ' # # RAILS # gem 'rails', '3.2.22' gem 'less-rails' gem 'twitter-bootstrap-rails' gem 'sass-rails', '~> 3.2.3' gem 'sass' gem 'therubyracer', '0.11.4gem 'libv8' gem 'ledermann-rails-settings' gem 'jbuilder' #to allow cloning of objects gem 'amoeba' # Gems used only for assets and not required in production group :assets do gem 'coffee-rails', '~> 3.2.1' end group :development do gem "better_errors" gem "binding_of_caller" end # # DATABASE/SERVER # gem 'mysql2', '0.3.10' # Use unicorn as the app server # gem 'unicorn' #cancan for usergroups gem 'cancan' 10th November 2015Roskilde University, Copenhagen
Gems (cont.) # # USERS # # devise for user authentication gem 'devise' gem 'devise_invitable' gem 'omniauth' gem 'omniauth-shibboleth' #rolify for roles gem 'rolify' # Gems for repository integration gem ' _validator' gem 'validate_url' # # VIEWS # gem 'jquery-rails' gem 'tinymce-rails' gem 'friendly_id' gem 'contact_us' gem 'recaptcha‘ gem 'uglifier' #implementation of forms gem 'activeadmin', '1.0.0.pre1' # # EXPORTING PLANS # gem 'thin' gem 'wicked_pdf' gem 'feedzirra', '0.5.0' # WORD DOC EXPORTING gem 'caracal', '~> 1.0' gem 'caracal-rails', '~> 1.0‘ gem ‘nokogiri’ 10th November 2015Roskilde University, Copenhagen
Steps to run RoR Ruby commands: –If changes have been made to ‘Gemfile’ $ rm Gemfile.lock $ bundle install –If changes have been made to the DB $ rake db:migrate RAILS_ENV=production –Steps to make changes live $ rake assets:clean $ rake assets:precompile:all RAILS_ENV=production $ rm -rf tmp/cache/assets $ > log/production.log $ sudo /usr/sbin/apachectl restart 10th November 2015Roskilde University, Copenhagen
What’s next? A number of enhancements and new features are planned. These include: APIs to create plans, extract guidance and generate statistics from DMPonline Multi-lingual support so foreign language versions can be presented Locale-aware support to provide tailored instances for particular countries or other contexts A lifecycle to indicate the status of DMPs and allow institutional access to plans Support for reviewing Data Management Plans 10th November 2015Roskilde University, Copenhagen
Q&A Image credit: The original SimonB - 10th November 2015Roskilde University, Copenhagen