An open API service indexing awesome lists of open source software.

https://github.com/sarakhild/reactive-apis-micorservices

This project simplify the Spring WebFlux MicroServices and WebClient Integration.
https://github.com/sarakhild/reactive-apis-micorservices

java microservices springboot springwebflux webclient

Last synced: 4 months ago
JSON representation

This project simplify the Spring WebFlux MicroServices and WebClient Integration.

Awesome Lists containing this project

README

        

# Movie Reactive API MicroService

## Overview
In this project I built MicroServices using the concept of Spring WebFlux where communicating with each other by WebClient and handling requests.



## Usages
- SpringBoot
- Spring WebFlux
- WebClient
- JUnit5 test
- Mongodb


## Architecture of the Project

### 1-src folder

- MovieInfo
- controllers folder
- models folder
- services folder
- repositories

- MovieReview
- exceptions folder
- handlers folder
- models folder
- services folder
- repositories folder
- routers folder

- Movie
- Client folder
- controllers folder
- exceptions folder
- handlers folder
- models folder

### 2-Maven pom.xml

- MoiveInfo and MovieReview pom.xml:

```


org.springframework.boot
spring-boot-starter-webflux



io.projectreactor
reactor-test
test



org.projectlombok
lombok
1.18.20
provided



org.springframework.boot
spring-boot-starter-data-mongodb-reactive
2.7.4


org.springframework.boot
spring-boot-starter-test
test


junit
junit





org.junit.jupiter
junit-jupiter-engine
test


io.projectreactor
reactor-test
test



org.springframework.boot
spring-boot-starter-validation
2.7.4

```



- Movie pom.xml:
```


org.springframework.boot
spring-boot-starter-webflux


org.springframework.boot
spring-boot-starter-test
test



org.springframework.cloud
spring-cloud-contract-wiremock
3.1.4


com.github.tomakehurst
wiremock-jre8
2.34.0
test


io.projectreactor
reactor-test
test



org.projectlombok
lombok
1.18.20
provided



org.springframework.boot
spring-boot-starter-data-mongodb-reactive
2.7.4


com.github.tomakehurst
wiremock-standalone
2.27.2
test

```

### 3-Application.properties.yml

```
spring:
data:
mongodb:
database: moviedb
host: localhost
port: 27017

spring.datasource.username: moviedb
spring.datasource.password: nFLhPPKOnkW1FA1e
spring.data.mongodb.auto-index-creation: "true"

```
## Let's Start :mechanical_arm:
### Run the program

* 1- run MovieInfo and add information on postman
movieInfo-get

* 2- run MovieReview and add information on postman
movieReview-get

* 3- run Movie to get information and review about movie by id on postman
movie-get

---

### Good Luck