Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Setup

For development purposes, frontend GUI and backend APIs have been separated and runs onto 2 different runtime servers.

  • Frontend is an Angular 8 application served by ng serve with livereload enabled,
  • Backend is a Spring Boot application served by Boot internal server

We also need a Keycloak server running on port 8180.

Pre-requisites

  • NodeJS (version >= 16.0) and associated tools : NPM and ng-cli (npm i -g @angular/cli)
  • Java Development Kit (version >= 11) and Apache Maven (version >= 3.0)
  • Keycloak 14.0.0
  • MongoDB 3.4

Start servers

Let's begin with starting the Keycloak server. Within the installation directory of Keycloak 14.0.0, just run this command:

$ cd bin
$ ./standalone.sh -Djboss.socket.binding.port-offset=100

In a terminal, start frontend GUI server using NG :

$ cd src/main/webapp
$ npm install
$ ng serve

Server is started on port 4200. Open a new browser tab pointing to http://localhost:4200 where application is hosted.

with keycloak:

$ mvn spring-boot:run

with keycloak disabled:

$ KEYCLOAK_ENABLED=false mvn spring-boot:run

Server is started on port 8080 and will be used as API endpoints root by frontend GUI (URLs starting by http://localhost:4200/api will be in fact proxied to port 8080).