The project configurations are located at collation/data/project
.
In this directory there can be a number of different project directories each must contain a config.json
file. The project supplied for the example is called default
. You can replace this configuration with your own or add a new directory for a second project. If you add a new project then you will need to edit the _current_project
variable near the top of the services file (collation/static/js/local_services.js
) which reads
_current_project = 'default';
and replace ‘default’ with the string that matches your project directory. This means you can have lots of different project configurations stored and select the one that you want to run by editing this file.
The minimum information required in the project configuration is:
Many other settings and configurations can be specified in this file. They are covered in the configuration section of the documentation. Several of the functions and variables that can be specified in the services file can also be configured at the project level. The relevant settings are linked from the project settings page. Unless you are sure about what you are doing it is best to stick with configuring the standalone system in the project settings, however, the services file can also be used for installation wide settings if you choose.
{
"id": "default",
"name": "example project",
"managing_editor": "default",
"editors": ["editors"],
"witnesses": [
"document_1",
"document_2",
"document_3",
"document_4",
"document_5"
],
"base_text": "document_3"
}