This repository contains backend and frontend projects that make use of Reactive Web patterns, as explained in the Full Reactive Stack series of posts.
This is a Spring Boot 2.0 application that retrieves data using Spring Reactive Web (WebFlux), instead of using the standard synchronous MVC framework. It connects to a MongoDB database in a reactive way too.
This simple Angular JS application consumes the controller on the backend side using a reactive approach, Server-Sent Events, so data is loaded on screen as soon as it's available.
The docker folder contains a docker-compose
file that runs the Mongo database, the backend application
and the AngularJS application. It also contains a simplified version, docker-compose-mongo-only.yml
, which
runs only the MongoDB instance, in case you want to run the applications without docker.
-
Go to
docker
folder -
Run
docker-compose up
-
Go to
spring-boot-reactive-web
folder -
Run
./mvnw spring-boot:run
-
Go to
angular-reactive
folder -
Run
npm install
-
Run
npm run ng serve
then go tohttp://localhost:4200/
After getting the quotes from MongoDB, there is a "Delete" button in the actions column on the right side.
Your goals are:
-
to fork this github project to your github account
-
to create a new git branch called "feature/delete-quote-solution" from branch "feature/delete-quote"
-
to code the "Delete" REST API in backend in order to remove a quote from MongoDB
-
to code the JUnit test for "Delete" REST controller
-
to link the REST API to the delete button in the frontend app
-
to send us over the link to your github branch