You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+18-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
-
# Sample Reactive - Spring Boot application
2
-
The purpose of this project is to demonstrate how we can use [Spring WebFlux](https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html) to create a simple reactive web application.
1
+
# Sample Reactive - Spring Boot application
2
+
3
+
The purpose of this project is to demonstrate how we can
4
+
use [Spring WebFlux](https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html) to create
5
+
a simple reactive web application.
3
6
4
7
This project uses [PostgreSQL](https://github.com/r2dbc/r2dbc-postgresql) implementation of the R2DBC SPI.
5
8
@@ -9,20 +12,29 @@ project can be compiled with JDK 8 and above `javac`.
9
12
10
13
To compile just do `mvn clean package`.
11
14
15
+
## Prerequisites
16
+
17
+
* JAVA 8 should be installed
18
+
* Postgres should be up and running at : <localhost:5432>
19
+
12
20
To run the application execute the following:
21
+
13
22
```
14
23
java -jar target/reactive-examples*.jar
15
24
```
16
-
You can also use the Swagger-ui.html to test the application.
17
-

18
25
19
-
for more detailed technical information please check my post :
26
+
You can also use the Swagger-UI to test the application.
27
+

20
28
29
+
for more detailed technical information please check my
30
+
post : <https://dassum.medium.com/building-a-reactive-restful-web-service-using-spring-boot-and-postgres-c8e157dbc81d>
21
31
22
32
The server will start at <http://localhost:8080>.
23
33
24
34
## Exploring the Rest APIs
25
35
36
+
The Swagger UI will open at : <http://localhost:8080/swagger-ui/index.html>
37
+
26
38
The application contains the following REST APIs
27
39
28
40
```
@@ -38,6 +50,7 @@ The application contains the following REST APIs
38
50
39
51
4. GET /users/events - Stream users to a browser as Server-Sent Events
40
52
```
53
+
41
54
It contain a sample WebClient to retrieve data from our User Management application.
0 commit comments