Difference between revisions of "Open Data/RDMP Tools"

From Libopedia
Jump to navigation Jump to search
m
Line 4: Line 4:
 
==Introduction==
 
==Introduction==
 
This wiki page details the installation and use of the [https://dmponline.dcc.ac.uk DCC RDMP software] ('''RDMP''' = '''R'''esearch '''D'''ata '''M'''anagement '''P'''lan) on an Ubuntu 14.04 LTS server with the "RubyonRails" web development framework installed.
 
This wiki page details the installation and use of the [https://dmponline.dcc.ac.uk DCC RDMP software] ('''RDMP''' = '''R'''esearch '''D'''ata '''M'''anagement '''P'''lan) on an Ubuntu 14.04 LTS server with the "RubyonRails" web development framework installed.
 +
 +
==Operation==
 +
To do.
  
 
==Installation==
 
==Installation==
Line 58: Line 61:
 
  bundle install
 
  bundle install
 
  rake db:create
 
  rake db:create
 
==Operation==
 
To do.
 
  
 
==References==
 
==References==

Revision as of 15:58, 24 June 2016

BACK TO OPEN DATA

Introduction

This wiki page details the installation and use of the DCC RDMP software (RDMP = Research Data Management Plan) on an Ubuntu 14.04 LTS server with the "RubyonRails" web development framework installed.

Operation

To do.

Installation

Step 1 - Install Ubuntu server

Install an Ubuntu 14.04 LTS server as per:

http://ubuntu.sun.ac.za/wiki/index.php/Enterprise_Server_Management

Step 2 - Install RubyonRails framework on the server

Install the prerequisites

Login to the server and then type the following;

sudo -i
apt-get install git mysql-server mysql-client libmysqlclient-dev
apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

Install Ruby

Then install ruby as follows;

cd
wget http://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
tar -xzvf ruby-2.3.1.tar.gz
cd ruby-2.3.1/
./configure
make
make install
ruby -v

Install Rails

Type the following;

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
apt-get install -y nodejs
gem install bundler
gem install rails -v 3.2.22
rails -v

Step 3 - Get the DMP code

Type the following;

git clone https://github.com/DigitalCurationCentre/DMPonline_v4.git

Step 4 - Create the databases

Type the following;

cd DMPonline_v4
cp config/database_example.yml config/database.yml
nano config/database.yml

Update the database settings you want and save the file.

Type the following;

apt-get install phpmyadmin

Then go to the phpmyadmin web app (normally /phpmyadmin) and create the MySQL databases.

Step 5 - Build the web app

Make sure you are in the DMP source code folder and then type;

bundle install
rake db:create

References