Installation Guide

Docker is the easiest way to get Reitti up and running. The provided Docker Compose configuration handles all the required services including PostgreSQL with PostGIS, RabbitMQ, Redis, and Photon geocoding service.

Simply download the docker-compose.yml file and run:

docker-compose up -d

This will start all services and make Reitti available at http://localhost:8080 with default credentials admin:admin.

From Source

To build and run Reitti from source code:

Prerequisites

  • Java 24 or higher
  • Maven 3.6 or higher
  • PostgreSQL with PostGIS extensions
  • RabbitMQ
  • Redis

Build Steps

  1. Clone the repository from GitHub:
git clone https://github.com/dedicatedcode/reitti.git
cd reitti
  1. Adjust the variables in src/main/resources/application.properties for your environment:
# Server configuration
server.port=8080

spring.datasource.url=jdbc:postgresql://localhost:5432/reittidb
spring.datasource.username=reitti
spring.datasource.password=reitti

#Redis configuration
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.username=
spring.data.redis.password=

# RabbitMQ Configuration
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=reitti
spring.rabbitmq.password=reitti
  1. Build the Spring Boot application using Maven:
mvn clean package
  1. Run the application:
mvn spring-boot:run

The application will be available at http://localhost:8080 with default credentials admin:admin.