Skip to content

Commit 622f3d9

Browse files
author
Rajeev Kumar Singh
committed
Readme
1 parent 2d4681f commit 622f3d9

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

Readme.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Build Reactive Rest APIs with Spring WebFlux and Reactive MongoDB
2+
3+
Read the tutorial : https://www.callicoder.com/reactive-rest-apis-spring-webflux-reactive-mongo/
4+
5+
## Requirements
6+
7+
1. Java - 1.8.x
8+
9+
2. Maven - 3.x.x
10+
11+
3. MongoDB - 3.x.x
12+
13+
## Steps to Setup
14+
15+
**1. Clone the application**
16+
17+
```bash
18+
git clone git@github.com:callicoder/spring-webflux-reactive-rest-api-demo.git
19+
```
20+
21+
**2. Build and run the backend app using maven**
22+
23+
```bash
24+
cd spring-webflux-reactive-rest-api-demo
25+
mvn package
26+
java -jar target/webflux-demo-0.0.1-SNAPSHOT.jar
27+
```
28+
29+
Alternatively, you can run the app without packaging it using -
30+
31+
```bash
32+
mvn spring-boot:run
33+
```
34+
35+
The server will start at <http://localhost:8080>.
36+
37+
## Running integration tests
38+
39+
The project also contains integration tests for all the Rest APIs. You can run the integration tests by going to the root directory of the project typing `mvn test` in the terminal.

src/test/java/com/example/webfluxdemo/WebfluxDemoApplicationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import org.springframework.boot.test.context.SpringBootTest;
1010
import org.springframework.http.MediaType;
1111
import org.springframework.test.context.junit4.SpringRunner;
12-
import org.springframework.test.web.reactive.server.FluxExchangeResult;
1312
import org.springframework.test.web.reactive.server.WebTestClient;
1413
import reactor.core.publisher.Mono;
15-
import reactor.test.StepVerifier;
1614

1715
import java.util.Collections;
1816

0 commit comments

Comments
 (0)