Files

                                   ___ _
                                  / __(_)_ __   __ _ _ __   ___ ___ _ __
                                 / _\ | | '_ \ / _` | '_ \ / __/ _ \ '__|
                                / /   | | | | | (_| | | | | (_|  __/ |
                                \/    |_|_| |_|\__,_|_| |_|\___\___|_|


    1. About
    2. Content
    3. Overview
    4. Architectural overview
    5. Account types
    6. Booking rules
    7. Setup


    7. Setup
    ========
    This chapter explains how to setup a financer instance. It requires PostgreSQL as a database backend and a Java
    Servlet Container (e.g. Apache Tomcat) as a runtime environment.

    7.1 Database setup
    ------------------
    First install PostgreSQL. Then create a user for financer:
        sudo -iu postgres
        createuser -P -s -e financer
    This creates a user named 'financer' and prompts for the creation of a password for this user. The expected default
    password is 'financer'. Then create the actual database:
        createdb financer
    Using 'financer' for the name of the user, its password and the database name is the expected default. If you want
    any other values you need to adjust the database connection settings of the financer application.
    Then you need to grant the created user permission to the created database:
        psql
        GRANT ALL PRIVILEGES ON DATABASE "financer" to financer;
        \q
        exit