Skip to content

zaizi/full-reactive-stack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Reactive Stack Build Status

This repository contains backend and frontend projects that make use of Reactive Web patterns, as explained in the Full Reactive Stack series of posts.

Full Reactive Stack Overview

Components

Spring Boot Reactive Web

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.

Angular Reactive

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.

Docker

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.

How to run the project

MongoDB

  • Go to docker folder

  • Run docker-compose up

Spring-boot app

  • Go to spring-boot-reactive-web folder

  • Run ./mvnw spring-boot:run

Angular app

  • Go to angular-reactive folder

  • Run npm install

  • Run npm run ng serve then go to http://localhost:4200/

Your test

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

About

Full Reactive Stack with Spring Boot (WebFlux), MongoDB and Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 60.3%
  • TypeScript 27.0%
  • HTML 7.6%
  • JavaScript 4.1%
  • Other 1.0%