Skip to content
Moera node
Java HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main
.gitignore
LICENSE
README.md
checkstyle.xml
pom.xml
run

README.md

Moera Node

Read more about Moera at https://moera.org

Learn more about Moera nodes: http://moera.org/overview/node.html

How to setup a complete Moera Development Environment: http://moera.org/development/setup/index.html

Installation instructions:

  1. As prerequisites you need to have OpenJDK 8+ and PostgreSQL 9.6+ installed. In all major Linux distributions you can install them from the main package repository.

  2. You need to have moera-commons installed.

  3. Create a PostgreSQL user <username> with password <password> and an empty database <dbname> owned by this user (see detailed instructions here: http://moera.org/development/setup/create-db.html).

  4. Go to the source directory.

  5. Create src/main/resources/application-dev.yml with the following content:

    spring:
      datasource:
        url: jdbc:postgresql:<dbname>?characterEncoding=UTF-8
        username: <username>
        password: <password>
    node:
      root-secret: <secret>
      naming:
        location: http://<naming server>:<naming port>/moera-naming
    • <secret> must be a long random string of letters and digits without spaces.
    • <naming server>:<naming port> must be set to the hostname and the port where the naming server is running.
  6. By default, the server runs on port 8081. If you want it to run on a different port, add these lines to the file above:

    server:
      port: <port number>
  7. Execute ./run script.

You can’t perform that action at this time.