Fat Jar

Building

First of all, build FactCast completely if not yet done by running

mvn install

In order to run a simple example FactCast server, you could enter the project factcast-examples/factcast-example-server and run

mvn spring-boot:run

or run it in your IDE. Note that it will use Testcontainers to start an ephemeral Postgres instance for you. That means, you need to have a runnable Docker installed on your machine.

In case you want to use your local Postgres instead, take a look at ExampleServerWithPostgresContainer to find out what is necessary to use a pgsql. After all, this is just a very simple Spring Boot application using JDBC.

As expected, running

mvn package

will create a standard Spring Boot fat jar target/factcast.jar that can be run instantly.

To connect to it, see Ports.