Skip to content

Boilerplate code for springboot. It contains user management via rest api with connection to postgresql database.

License

Notifications You must be signed in to change notification settings

AdamBalski/springboot-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Boilerplate

Template for spring boot applications. It includes user management via a rest api, uses JWTs for auth(and refresh tokens stored in cookies).

Running and testing

Prerequisites

  • docker with docker compose
  • maven
  • JDK >= 17

Run the app

To create the image, create a ./docker-compose.yml file. You can source a template with:

cp docker-compose.yml.template docker-compose.yml

Then, compile the web-app into a docker container.

mvn spring-boot:build-image -Dspring-boot.build-image.imageName=spring-boot-boilerplate

Having done that, run docker compose up to start the application and the app will listen on port 8080.

Test

mvn clean test

Done with: (for more info check pom.xml)

  • jdk 17 (with preview features turned on)
  • maven
  • spring boot
  • jpa with hibernate
  • postgresql
  • jackson based jjwt
  • test containers
  • mockito
  • junit5
  • slf4j
  • docker

License

Copyright (c) 2021 Adam Balski

Licensed under the MIT license.

About

Boilerplate code for springboot. It contains user management via rest api with connection to postgresql database.

Topics

Resources

License

Stars

Watchers

Forks

Languages