/angular-spring-reactive-post-sample

Sample project for Angular and Spring Reactive

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

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 and Run

Clone the source codes into your local system.

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

Server

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

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

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

This file will make up and running application frontend and backend with mongo and redis dependencies.

docker-compose up

NOTE: You can also install a local MongoDb and Redis instead of using Docker.

Then run the application by Spring boot maven plugin directly.

mvn spring-boot:run

Client

Angular 13

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.