How to create RRR from scratch » History » Version 3

Daniele Barchiesi, 2013-11-21 04:47 PM

1 1 Daniele Barchiesi
h1. How to create RRR from scratch
2 1 Daniele Barchiesi
3 3 Daniele Barchiesi
h2. Setup local Drupal website environment
4 1 Daniele Barchiesi
5 1 Daniele Barchiesi
   * Install XAMMP - web stack including database and web server apache
6 1 Daniele Barchiesi
7 1 Daniele Barchiesi
      * Download relevant version from http://www.apachefriends.org/en/xampp-macosx.html#849
8 1 Daniele Barchiesi
      * Run the installer
9 1 Daniele Barchiesi
      * Open XAMPP manager application and start all the servers (MySQL, Apache and ProFTPD)
10 1 Daniele Barchiesi
11 1 Daniele Barchiesi
   * Install drush - command line utility to manage Drupal websites
12 1 Daniele Barchiesi
   * Install git - command line utility to manage version control
13 1 Daniele Barchiesi
   * Install drupal and use git to track its repository
14 1 Daniele Barchiesi
15 1 Daniele Barchiesi
      * Navigate to your XAMMP/htdocs/ folder
16 1 Daniele Barchiesi
      * Run 
17 1 Daniele Barchiesi
<pre>
18 1 Daniele Barchiesi
drush dl drupal --package-handler=git_drupalorg
19 1 Daniele Barchiesi
</pre>
20 1 Daniele Barchiesi
      * Rename the folder with the name of your site site_name
21 1 Daniele Barchiesi
22 1 Daniele Barchiesi
   * Create new database
23 1 Daniele Barchiesi
24 1 Daniele Barchiesi
      * Run 
25 1 Daniele Barchiesi
<pre>
26 1 Daniele Barchiesi
mysqladmin -u root -p create dbname
27 1 Daniele Barchiesi
</pre>
28 1 Daniele Barchiesi
 where dbname is the name of the database and root is the user
29 1 Daniele Barchiesi
30 2 Daniele Barchiesi
      * set privileges following instructions in the INSTALL.dbtype file in the Drupal folder (where dbtype is the kind of database used - e.g. MySQL)
31 1 Daniele Barchiesi
32 1 Daniele Barchiesi
   * Create new site
33 1 Daniele Barchiesi
34 1 Daniele Barchiesi
      * Point a browser to localhost/site_name
35 1 Daniele Barchiesi
      * Follow the installation instructions
36 1 Daniele Barchiesi
At this point, you have a clean drupal website that can be accessed locally at http://localhost/site_name
37 3 Daniele Barchiesi
38 3 Daniele Barchiesi
h2. Obtain RRR modules and settings
39 3 Daniele Barchiesi
* Clone the RR repository to a folder of your choice by running the command
40 3 Daniele Barchiesi
<pre>
41 3 Daniele Barchiesi
hg clone https://code.soundsoftware.ac.uk/hg/rr-repo
42 3 Daniele Barchiesi
</pre>
43 3 Daniele Barchiesi
* Copy the features module rr-repo/sites/all/modules/experiments_list to the modules folder of your website XAMPP/htdocs/site_name/sites/all/modules
44 3 Daniele Barchiesi
* Enable modules by running
45 3 Daniele Barchiesi
<pre>
46 3 Daniele Barchiesi
drush pm-enable experiments_list
47 3 Daniele Barchiesi
</pre>