• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language
    Java
  • Created about 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build Reactive Rest APIs with Spring WebFlux and Reactive Mongo

Build Reactive Rest APIs with Spring WebFlux and Reactive MongoDB

Read the tutorial : https://www.callicoder.com/reactive-rest-apis-spring-webflux-reactive-mongo/

Requirements

  1. Java - 11

  2. Maven - 3.x.x

  3. MongoDB - 3.x.x

Steps to Setup

1. Clone the application

git clone https://github.com/callicoder/spring-webflux-reactive-rest-api-demo.git

2. Build and run the app using maven

cd spring-webflux-reactive-rest-api-demo
mvn package
java -jar target/webflux-demo-0.0.1-SNAPSHOT.jar

Alternatively, you can run the app without packaging it using -

mvn spring-boot:run

The server will start at http://localhost:8080.

Exploring the Rest APIs

The application defines following REST APIs

1. GET /tweets - Get All Tweets

2. POST /tweets - Create a new Tweet

3. GET /tweets/{id} - Retrieve a Tweet by Id

3. PUT /tweets/{id} - Update a Tweet

4. DELETE /tweets/{id} - Delete a Tweet

4. GET /stream/tweets - Stream tweets to a browser as Server-Sent Events

Running integration tests

The project also contains integration tests for all the Rest APIs. For running the integration tests, go to the root directory of the project and type mvn test in your terminal.

More Repositories

1

spring-security-react-ant-design-polls-app

Full Stack Polls App built using Spring Boot, Spring Security, JWT, React, and Ant Design
Java
1,696
star
2

spring-boot-react-oauth2-social-login-demo

Spring Boot React OAuth2 Social Login with Google, Facebook, and Github
Java
1,300
star
3

spring-boot-websocket-chat-demo

Spring Boot WebSocket Chat Demo with SockJS fallback and STOMP protocol
Java
986
star
4

spring-boot-file-upload-download-rest-api-example

Spring Boot File Upload / Download Rest API Example
Java
389
star
5

spring-boot-mysql-rest-api-tutorial

Building a Restful CRUD API using Spring Boot, Mysql, JPA and Hibernate
Java
373
star
6

golang-tutorials

Golang Tutorials. Learn Golang from Scratch with simple examples.
Go
357
star
7

jpa-hibernate-tutorials

Hibernate Tutorials with Spring Boot and Spring-Data-JPA
Java
272
star
8

spring-boot-postgresql-jpa-hibernate-rest-api-demo

Building RESTful APIs with Spring Boot, PostgreSQL, JPA and Hibernate
Java
266
star
9

java-concurrency-examples

Java Concurrency/Multithreading Tutorial with Examples for Dummies
Java
256
star
10

node-easy-notes-app

A simple Note-Taking app built using Node.js, Express and Mongoose
JavaScript
170
star
11

spring-boot-quartz-scheduler-email-scheduling

Spring Boot Quartz Scheduler Example that schedules Emails to be sent at a later time.
Java
150
star
12

java-snowflake

Distributed Unique ID Generator in Java inspired by Twitter Snowflake
Java
137
star
13

java-read-write-excel-file-using-apache-poi

How to Read and Write Excel Files in Java using Apache POI
Java
117
star
14

go-docker-compose

Golang Docker Compose Example
Go
106
star
15

java-collections-examples

A Complete Reference to Java Collections Framework through simple examples
Java
106
star
16

javafx-examples

JavaFX Example Projects
Java
97
star
17

spring-boot-mongodb-angular-todo-app

A Sample App built using Spring Boot, Angular and MongoDB
TypeScript
90
star
18

kotlin-spring-boot-jpa-rest-api-demo

Build a Restful API with Kotlin, Spring Boot, Mysql, Jpa and Hibernate
Kotlin
89
star
19

spring-boot-actuator-demo

Spring Boot Actuator: Health Check, Metrics Gathering, Auditing, and Monitoring
Java
71
star
20

java-read-write-csv-file

Read and Write CSV files in Java using Apache Commons CSV and OpenCSV
Java
64
star
21

spring-boot-flyway-example

Spring Boot Flyway Database Migration Example
Shell
49
star
22

spring-webclient-webtestclient-demo

Spring 5 Reactive WebClient and WebTestClient Demo
Java
48
star
23

go-docker

Golang Docker Container Example
Go
42
star
24

spring-boot-log4j-2-demo

Spring Boot Log4j2 Demo with Async Loggers
Shell
34
star
25

go-kubernetes

Deploying a Go app on Kubernetes (Hands-on example with Minikube)
Go
34
star
26

qr-code-generator-and-reader

QR Code Generator and Reader in Java
Java
32
star
27

spring-boot-scheduler-example

The project demonstrates how to schedule tasks with Spring Boot using the @Scheduled annotation
Java
32
star
28

ML-Demand-Prediction

Machine Learning Model for Order Demand Prediction based on historical Order data - Built for Swiggy Hackathon 2018
Python
23
star
29

go-redis-kubernetes

Deploying a Go web app with Redis on Kubernetes
Go
17
star
30

spring-boot-configuration-properties-demo

Spring Boot externalized environment based configuration with @ConfigurationProperties and Spring Profiles
Java
16
star
31

spring-boot-heroku-deployment-example

Deploying / Hosting Spring boot applications on Heroku
Shell
14
star
32

go-docker-swarm

Golang Docker Machine, Docker Swarm, Docker Stack Example
Go
12
star
33

go-commons

Go
9
star
34

webtools

Online Web Developer Tools and Resources
Java
8
star
35

python-google-analytics-popular-pages

Python script to find the Top n pages from your Google analytics account and write the data to a file/stdout
Python
7
star
36

spring-boot-thymeleaf-tour

Spring boot and Thymeleaf Starter Project
Java
7
star
37

node-chat-app

Real time chat application built using node.js and socket.io
JavaScript
6
star
38

mean-todo-app

A Simple todo app built using MEAN stack
JavaScript
6
star
39

callicoder

6
star
40

material-commerce

E-commerce Redefined using Mongo, Node.js, Angular.js and MaterializeCss
HTML
5
star
41

kotlin-tutorials

Kotlin Tutorials. Learn Kotlin from Scratch with simple examples
Kotlin
5
star
42

kubernetes-go-grpc

Go
4
star
43

mqtt-publish-subscribe

Mqtt Publish Subscribe Model Illustration
Java
4
star
44

python-pubnub-chat

Realtime chat application built using pubnub python and javascript sdk, flask and mongodb
CSS
4
star
45

bagpiper

A referral and coupon generation app built using django-rest-framework
Python
3
star
46

scala-learner-worksheet

Learn Scala By Example. Sample Programs for Scala Collections, Functions and Classes
Scala
3
star
47

csgo-price-indexing

Python script to get latest prices of CSGO items and store in mongodb
Python
3
star
48

go-ready

Work In Progress: Production Ready Go App with HTTP and GRPC services
Go
3
star
49

node-image-processing

Asynchronous web worker for processing images uploaded by users - Node.js + RabbitMq + Cloudinary + Graphicsmagick
JavaScript
3
star
50

algorhythm

Standard Algorithms Implemented in C++
C++
3
star
51

play-scala-slick-learner

Learn By Example - Play framework with Scala and Slick
Scala
2
star
52

py-djangular

python-django-angular
JavaScript
2
star
53

pyjango

python-django-starter
Python
2
star