EpiLib guide

Server Administration#

The EpiLib application repository includes an experimental PostgreSQL metadata sync server in tools/postgresql-sync-server/. Use its server README with the exact application revision deployed to your users.

Prepare the server#

Install the required Node.js and PostgreSQL environment, create a dedicated database, apply schema.sql, and install the server’s dependencies as described in the application repository. Configure DATABASE_URL in the server environment and start the service with npm start from its directory.

The default listener is http://localhost:23129/. A remote deployment needs its own HTTPS endpoint, access controls, backups, and operating procedures. The database connection string belongs on the server, not in the desktop client’s Server URL field.

Accounts#

Passwords are stored as PBKDF2 hashes. Successful logins issue per-user API tokens. The first account on an empty server can be registered without a token; secure and initialize the service before making it available to users. Additional registration requires an authenticated account token.

Imported accounts require a deployment password. The server repository provides npm run user:password -- --username <username> for administrator-managed password setup or rotation.

Importing a library#

The importer can read metadata from zotero.org using a temporary API key with the required library permissions. Follow the application repository’s instructions and back up the destination first. The --replace option can replace existing metadata and must not be used as a routine update command.

Importing metadata does not copy attachment file bytes into PostgreSQL. Plan file migration and WebDAV configuration separately.

WebDAV and group access#

Run or obtain a WebDAV service separately. The optional group-access integration can update a password map locally or over SSH when configured. Review the current server README for the exact environment variables and access mapping; this documentation does not assume a particular host or institution.

Test account authentication, metadata sync, attachment upload/download, and member access using a small test library before migrating working libraries.