Skip to content

kamalhm/spring-boot-r2dbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot R2DBC Example

An example implementation of Spring Boot R2DBC REST API with PostgreSQL database.

Technology stack

  • Java 17
  • Maven
  • PostgreSQL 16.1
  • Docker

Java Dependencies

  • Spring Boot 3.2.1
  • Spring Data R2DBC
  • R2DBC PostgreSQL Driver
  • JUnit 5

Setup

  1. Run postgresql locally (or start from docker-compose file)
  2. Create two databases
    • postgres (main database)
    • test (dummy database for integration testing)
  3. Run Spring Boot App

Building Docker Image

  1. Run spring-boot build image plugin

mvn spring-boot:build-image -DskipTests

  1. Run generated docker image

docker run -it -p8080:8080 --network="host" reactive-postgres:0.0.2-SNAPSHOT

About

An example implementation of Spring Boot R2DBC REST API with PostgreSQL database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages