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.
- Host: GitHub
- URL: https://github.com/sarakhild/reactive-apis-micorservices
- Owner: SaraKhild
- Created: 2022-11-07T08:14:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-21T10:54:39.000Z (over 1 year ago)
- Last Synced: 2024-12-29T04:51:32.700Z (6 months ago)
- Topics: java, microservices, springboot, springwebflux, webclient
- Language: Java
- Homepage:
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: 27017spring.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
* 2- run MovieReview and add information on postman
![]()
* 3- run Movie to get information and review about movie by id on postman
![]()
---### Good Luck
![]()