Skip to content

PDB-REDO/dssp-server

Repository files navigation

DSSP-server

This is the source code for the dssp webserver application.

Building

To build the code, you will have to install the following first:

  • Yarnpkg, a package manager for the Javascript and CSS files.
  • libmcfp, a library for parsing command line arguments
  • mrc, a resource compiler.
  • date, a library that implements date/time routines in C++.
  • libzeep, a library for building web applications in C++
  • libcifpp, a library for reading and manipulating mmCIF files.
  • libgxrio, a library to read and write compressed files using C++ streams.
  • libpqxx, a library to work with postgresql databanks.

After that, check out this repository and the included sub repository dssp followed by the usual cmake commands:

git clone https://github.com/PDB-REDO/dssp-server --recurse-submodules
cd dssp-server
cmake -S . -B build
cmake --build build
cmake --install build

Then create a databank for dssp and load the schema from schema.sql. E.g.:

createuser dssp-admin -P
createdb dssp-db -O dssp-admin
psql dssp-db -f schema.sql

You will then need to copy the file dsspd.conf.dist to dsspd.conf and edit it. Place the resulting file in /etc.

After that, you can launch dsspd:

dsspd start

To run the server in the foreground, run dsspd start --no-daemon. Log files are written to /var/log/dsspd.

If you're on Linux, a systemd service file is installed as well.