Environment Setup

Before the application can be started, there are some preparations necessary. Beside cloning the repository, installing the required packages and configuring third party tools (like pgbouncer or apache2), there are the following additional points:

  • adjusting the Configuration

  • creating the PostgreSQL database

  • creating the file storage

  • creating the log directory

To do this in a convenient way, there is the cdedb.cli module. It consumes most necessary information from the Config (and the given overrides) and performs the setup process via several python functions.

Additionally, it provides a command line interface, so the functions can be used during scripting or setup via terminal. All available targets are shown after executing:

python3 -m cdedb

Make sure to add the cdedb module to the python path before.

We strongly recommend using one of the prebuilt environments. To do so, take a look at Setup the VM and Setup a Docker container, respectively.