Skip to content

Latest commit

 

History

History
110 lines (75 loc) · 4.53 KB

File metadata and controls

110 lines (75 loc) · 4.53 KB

Getting started with Java and Spring-boot

A Flavours project template for Java/Spring Boot

Quick start

Clone the repository

git clone git@github.com:flavours/getting-started-with-spring-boot.git

Build the project

cd getting-started-with-spring-boot
docker-compose build

The project includes a web service, running the Java code, and a db service, running a Postgres database. See the docker-compose.yml file for details.

Run the project

docker-compose up

Containers for both services will be launched. The project can be reached at http://localhost:8000.

Hot-reloading is enabled (i.e. changes to the Java code in the project will cause the application to restart so that they can be used.)

How to

Run the local project on a different port

The container runs a Tomcat server listening on port 8080. The docker-compose.yml file is set up to expose this port to the Docker host at port 8000, but you are free to change it as you wish - edit the ports directive:

services:
  web:
    [...]
    ports: 
      - 8000:8080

Contribute to the project

See the contribution guide.

How to prepare a new release of the getting-started project###

To create a new release of the getting started project, you have to updated the default welcome screen with the latest version.

docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/core:2.9.2 -s --css https://utils.flavours.dev/baseproject/1.0/style.css -o /data/src/main/resources/templates/index.html /data/README.md

Please also update the changelog accordingly and tag a new release in github.

External how-to guides

Reference

This project template uses:

External reference