The backend provides services for both the Review Dashboard and Check My Dataset and integrates with Dataverse services.
The backend:
The backend is implemented in Python and is currently tested with Python 3.8.
The backend is configured through a ‘backend_config.json’ file.
By default, the application expects this file in the root directory. The location can alternatively be specified through the ‘BACKEND_CONFIG_FILE’ environment variable.
The configuration file contains settings for:
"DataverseURL": URL of your installation, used for generating links to datasets.
"DataverseAPI": URL of native API (without /api).
"DataverseAPIKeyFile": Location of the file containing Dataverse API key.
"SolrHost": URL of the Solr index.
"SolrAPIKeyFile": Location of the API key for Solr, if necessary.
"PostgresHost": PostgreSQL database host address.
"PostgresPort": Port of the PostgreSQL database.
"PostgresDB": Name of the Dataverse database in PostgreSQL.
"PostgresUser": Username of the user that can access the PostgreSQL database.
"PostgresPasswordFile": Path of the file containing PostgreSQL database.
"SMTPHost": SMTP host to be used for sending emails.
"SMTPPort": SMTP port.
"SMTPPasswordFile": Password file.
"testEmail": If not null, all emails will be sent to this address.
"helpdeskEmails": Email address of the helpdesk of your installation. Support request emails will be sent to this address.
"userIdHeaderField": The HTTP header field that contains the dataverse username of the reviewer.
"reviewerRoles": The user groups that can access the Review Dashboard.
"dataverseUserGroupAliases": The groups that can review datasets and admin the Review Dashboard.
More details about roles and permissions: Roles
"UIPath": The path for the compiled UI files to be statically served by the backend. Set this to _null_ if you do not want the UI to be statically served by the backend.
"issueDefinitionsFile": Location of the dataset_issue_definitions.json, as described below.
"emailTemplatesPath": Location of the template for feedback email, described below.
Issue definitions, more details: Checks.
More details about email templates, see Emails.