Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidarchanjo/spring-webflux-r2dbc
Sample Spring Boot project implementing some R2DBC features with Spring WebFlux
https://github.com/davidarchanjo/spring-webflux-r2dbc
java r2dbc spring-boot spring-webflux
Last synced: 6 days ago
JSON representation
Sample Spring Boot project implementing some R2DBC features with Spring WebFlux
- Host: GitHub
- URL: https://github.com/davidarchanjo/spring-webflux-r2dbc
- Owner: davidarchanjo
- Created: 2021-11-29T02:45:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T05:14:11.000Z (over 1 year ago)
- Last Synced: 2023-07-30T06:21:39.251Z (over 1 year ago)
- Topics: java, r2dbc, spring-boot, spring-webflux
- Language: Java
- Homepage:
- Size: 402 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot WebFlux R2DBC Application
![banner](./assets/banner.jpg)# Booting Up
- Launch Postgres from Docker:
docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=admin postgres:13.1-alpine -d postgres
- Clone the repository:
git clone https://github.com/davidarchanjo/spring-webflux-r2dbc
- Navigate to the folder:
cd spring-webflux-r2dbc
- Install dependencies and build the application:
mvn clean install
- Run the application:
java -jar target/spring-webflux-r2dbc-1.0.0.jar
# Testing
- Create New Author
`POST /authors`
```json
{
"name": "David A. Pereira"
}
```- Create New Book
`POST /books`
```json
{
"idAuthor": "1efcf599-116f-1fb6-cf3c-13d7528b7fb7",
"title": "Harry Potter: Hogwarts Mystery",
"dateOfParution": "2021-11-28"
}
```# Reference
Inspired by this [project](https://www.sipios.com/blog-tech/handle-the-new-r2dbc-specification-in-java).