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
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.
You need to have moera-commons installed.
Create a PostgreSQL user
<password>and an empty database
<dbname>owned by this user (see detailed instructions here: http://moera.org/development/setup/create-db.html).
Go to the source directory.
src/main/resources/application-dev.ymlwith 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.
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>