Skip to content

Eistbaren/server

Repository files navigation

Reservation-Bear server

Codacy Badge Build and push preview docker image

Server of the Reservation-Bear. 🐻‍❄️ Hosted at reservation-bear.de.

Run server

Choose one of these options and then the server should be running under http://localhost:8080

Mail server

However before running your application you need a smtp mail server account in order to send the emails. When you have them set these enviroment variables properly. (For more information visit here)

SPRING_MAIL_HOST=mymail.website.com
[email protected]
SPRING_MAIL_PASSWORD=secretPassword123

If you are starting the spring application through IntelliJ or any other IDE set these in your run configuration.

Run with docker-compose (recommended)

First modify the mail enviroment variables in the docker-compose.yaml.

# To build locally use --build instead of --no-build
docker-compose up --no-build

Run image with docker

docker run -p 8080:8080 ghcr.io/eistbaren/server:latest \
-e SPRING_MAIL_HOST=mymail.website.com \
-e [email protected] \
-e SPRING_MAIL_PASSWORD=secretPassword123

Run using gradle

export SPRING_MAIL_HOST=mymail.website.com \
       [email protected] \
       SPRING_MAIL_PASSWORD=secretPassword123
./gradlew bootRun

Build jar using gradle and run jar

export SPRING_MAIL_HOST=mymail.website.com \
       [email protected] \
       SPRING_MAIL_PASSWORD=secretPassword123
./gradlew bootJar
java -jar build/libs/eist-0.0.1-SNAPSHOT.jar