zhoushineyoung / angular-spring-reactive-sample

Reactive RESTful API demos with Spring 5, Spring Boot 2, Spring Data Mongo Reactive, Spring Session and Angular 5

Home Page:https://medium.com/@hantsy/build-a-reactive-application-with-spring-boot-2-0-and-angular-de0ee5837fed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents generated with DocToc

Angular Spring Reactive Sample

This application demonstrate building backend RESTful APIs with the newest Reactive stack introduced in Spring 5, and creating the frontend SPA with Angular 5.

Read the comprehensive step by step guide to get more details.

Project structure

  • client - The client application built with Angular CLI.
  • server - The backend RESTful APIs.

Build

Clone the source codes into your local system.

git clone https://github.com/hantsy/angular-spring-reactive-sample

Server

The backend is a Spring Boot based application, make sure you have installed the following software:

  • Apache Maven
  • Oracle JDK 8
  • Docker & Docker Compose

There is a docker-compose.yml file in the project root folder.

Starts up mongodb service by the following command.

docker-compose up mongodb

NOTE: You can also install a local mongodb instead of using Docker.

Then run the application by Spring boot maven plugin directly.

mvn spring-boot:run

Client

The client application is generated by Angular CLI.

Enter client folder, execute the following command to run the frontend UI.

npm install
npm run start

Open your favorite browser, and navigate to http://localhost:4200.

Contribute

Welcome to contribute this project. If you have some ideas do not hesitate to file an issue or send a PR directly.

About

Reactive RESTful API demos with Spring 5, Spring Boot 2, Spring Data Mongo Reactive, Spring Session and Angular 5

https://medium.com/@hantsy/build-a-reactive-application-with-spring-boot-2-0-and-angular-de0ee5837fed

License:GNU General Public License v3.0


Languages

Language:TypeScript 41.4%Language:Java 36.3%Language:HTML 9.6%Language:Shell 5.4%Language:Batchfile 4.1%Language:CSS 1.8%Language:JavaScript 1.4%