Skip to content

NashTech-Labs/webflux-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple example how you can use spring boot + mongodb + docker to create a REST api using spring webflux. Any suggestions, new features or corrections are welcome!

Spring webflux

Reactor is the reactive library of choice for Spring WebFlux. It provides the Mono and Flux API types to work on data.

Ref link: https://docs.spring.io/spring-framework/docs/current/reference/html/web-reactive.html

System requirements

Open JDK 8
Maven
Docker

Clone Project

Clone git@github.com:knoldus/restAPI-using-webflux.git and import project
mvn clean install
docker-compose up --build

Test API from swagger UI

http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/#

To verify mongodb collection

sudo su 
mongo
show dbs
use eb
eb.user.find()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors