Skip to main content

Initialize Backend

Generate a new backend application using the SOKit Initializer

Step 1: Open the Initializer

Navigate to the SOKit Initializer web interface by visiting:

http://dev.strategyobject.com:8888/initializer/

Here, you’ll be able to generate a new backend project based on available templates.

Initializer Website

Step 2: Select a Backend Template

Select the template "SOKit-Document-OIDC-Postgres" and complete the fields on the right as shown in the previous screenshot.

Step 3: Generate and Extract the Project

Click Generate Template and download the archive.

  1. Extract the archive to your preferred workspace directory.
  2. Open the extracted folder using your IDE or terminal.

Your project structure will resemble the following:

Project Structure

By exploring the project structure, you’ll notice that it is divided into three main sections: data, document, and src. These correspond to the data layer, document definition, and business logic, respectively. Each of these areas will be explored in more detail in the upcoming sections.

As you can see, some Java classes are already present. In the next steps, we’ll create new ones, starting with the data module where we’ll define our custom entities. You may also remove any pre-existing entities if they are not needed.

As for the document module, you can safely delete the following files, we’ll recreate them step by step during the guide:

  • /filter/DefaultFilter.java
  • Operations.java
  • OrderDocument.java
  • StartOperations.java
  • States.java

Ports, Instances, Consoles, and User Accounts

In the table below you can find Ports and Instances:

Service NamePortUser AccountsInstances
Postgres5432so/so123DB Name: postgres
Keycloak Postgres6432kc/kc123DB Name: postgres
Minio6061mio/mio123Bucket Name: dev
Maildev (Fake SMTP)1025N/AN/A

Here below Consoles and User Accounts:

Service NameURLUser Accounts
SOKit Initializerhttp://dev.strategyobject.com:8888/initializer/N/A
Keycloak Consolehttp://dev.strategyobject.com:6060kc/kc123, alice/123, bob/123
Minio Consolehttp://dev.strategyobject.com:6062minio/minio123
Maildev (Fake SMTP)http://dev.strategyobject.com:1080/N/A