Skip to content

ahmedabadawi/playground-docker-spring-angular

Repository files navigation

Playground - Docker, SpringBoot, and Angular 5

This playground repository is intended to build an application in Angular which consumes multiple backend microservices developed in SpringBoot. The idea is to initially configure a test environment based on a single-host with multiple docker containers hosting the different services. A web-server (NGINX) that acts as the entry-point of the application hosting the built Angular application and configured to proxy the API traffic to the corresponding backend service hosted on its own docker container.

Single Host Diagram

Build Steps

  1. Clone repository
git clone https://github.com/ahmedabadawi/playground-docker-spring-angular.git
cd playground-docker-spring-angular
  1. Build Angular application
cd frontend/frontend-app
ng build
  1. Build backend services
cd ../../backend
cd messaging-service
mvn clean package
cd ../notifications-service
mvn clean package
  1. Build and run docker compose
cd ../../
docker-compose build
docker-compose up
  1. Open browser on http://localhost

Prerequisites

  • Docker CE >= version 18
  • Docker Compose >= version 1.20
  • Maven 3.x.x
  • JDK 1.8+

Disclaimer

My playground repositories are not intended to provide complete applications, basically they are sandboxes and pet projects to try different technologies and techniques.

About

Playground - Using docker to host multiple SpringBoot backend services and frontend in Angular 5

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published