Skip to content

codertube/getting-started-with-spring-boot

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 61.2%
  • Shell 17.6%
  • Java 15.1%
  • Dockerfile 6.1%