Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Latest commit

 

History

History

webapp-springboot-thymeleaf

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DigitalCollections Blueprints: Webapp (Spring Boot + Thymeleaf)

This project provides a best practices blueprint for a production ready Webapp skeleton based on Spring Boot and Thymeleaf.

See also the Spring Boot Reference Guide.

Features documentation (each including Migration notes for version upgrades):

Usage

Development Quickstart using Docker Compose

Installation

Debian 9

$ su -
# apt-get install apt-transport-https dirmngr
# echo 'deb https://apt.dockerproject.org/repo debian-stretch main' >> /etc/apt/sources.list
# apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys F76221572C52609D
Executing: /tmp/apt-key-gpghome.wDKSqs4VYM/gpg.1.sh --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys F76221572C52609D
gpg: key F76221572C52609D: public key "Docker Release Tool (releasedocker) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
# apt-get update
# apt-get install docker-engine
# apt-get install docker-compose

Configuration

All Linux

Add your user to docker group to run docker without sudo:

$ sudo groupadd docker
$ sudo gpasswd -a yourusername docker
$ sudo service docker restart

Usage

To get the webapp quickly up running, you can start the Redis service using Docker Compose:

$ docker-compose up -d

Then Redis is running in a container and everything is ready for running a local instance of the webapp (see below).

To start the webapp, you have to run:

$ cd target
$ java -jar webapp-springboot-thymeleaf-<VERSION>-exec.jar

The webapp is now running under http://localhost:9000/.

To stop the container run

$ docker-compose stop

To delete the container and all data:

$ docker-compose down