Setting up a local developer copy

If you're a new developer on an existing Relatude project, one of the first tasks you have is to setup a local development environment with a working copy of the latest code. This will show you how.

Download the database

Relatude has a method to download the whole database in a database agnostic format from the System module. 

Go to the system module:
 

Select Maintenance:

Click on "DataBase":

Then click on "Download database" or "Download database and files":

If you select "Download database and files", the preparation and download might take a long time for big sites. The UI is not very good at the moment, but let it work until a dialog pops up.

Download the .setup file in the dialogue.

Install the database

After you have downloaded the .setup file, rename it to relatude.setup, and copy it to the root of the website repository.

Run the website. Relatude will see the setup file, and start in a special mode where you can install your database (and files if you chose the version with files). 

Follow the instructions, and restart the site after the installation is finished.