Skip to content

ptacca/spring-boot-angular-sse

 
 

Repository files navigation

spring-boot-angular-sse

Sample project Spring Boot + Server Sent Events + Angular

Preparations

  • install npm (Node Package Manager)
  • install angular-cli via npm
  • run "npm install" to download client dependencies (node_modules folder should appear)

Build

  • Build front-end (client): ng build
  • Build back-end (server): mvn clean install

Run

java -jar <path to jar>

Run frontend and backend separately (UI dev mode)

  • Run application as usual
  • Execute "ng serve --proxy-config proxy.conf.json" in terminal
  • Go to localhost:4200

Client deployed separately, but will use usual backend. When some changes done in IDE, angular will automatically rebuild client side and deploy it.

About

Sample project Spring Boot + Server Sent Events + Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 52.2%
  • Java 20.5%
  • HTML 17.1%
  • JavaScript 9.4%
  • CSS 0.8%