Skip to content

Installation for development ​

The other way of installation gives you more options to access data, logs, to change settings more in detail, to find bugs and even to change code to meet your needs. Our applications are great, but not perfect at all!

Technically, you check out all source code and build the application modules as developers do. The whole Angular development framework will be installed with all tools. The build process will include all unit end e2e tests we prepared.

We will not explain every step in detail. You should be familiar with git and bash and file handling in Unix, editing a text file etc.

Preconditions ​

Before you follow the instructions below, you need to install Docker, and make. We do not explain these applications, this is beyond the scope of this document.

Although all steps below could be done in another operating system environment, we go for a unix/linux.

1. Install ​

Clone this repository

2. Configure ​

make init

⚠️ This creates configuration files with values meant for development purposes only. For any production setup be sure to customize the files. Most importantly use your own passwords!

The important configuration files are:

  • .env.dev - This file contains sensitive information about database access and user logins

  • frontend/src/environments/environment.ts - Here information about accessing the backend is kept for the frontend component

There is one important setting to be made in the generated file .env.dev. On the first line, set the variable HOSTNAME to either the IP, or the hostname of the machine under which it is reachable, in case localhost does not work.

make init-backend

Installs the database schema, applies new patches and reads the data-dir - the dev stack's

3. Run ​

make build

Build all images of the project or a specified one as dev-images. Optional service: Only build a specified service, e.g. service=backend

make up

Ramp the application up (i.e. creates and starts all application containers). Optional service: Only ramp up a specified service, e.g. service=backend

Note: Stop local webserver before, to free port 80

3. Update ​

git pull

Update the local repository.

make build

Rebuilding.

Login ​

After installation two logins are prepared:

  • Username super and password user123 as admin user

  • Username test and password user123 and code xxx as test-taker