/spring-boot-angular-websockets

Application using only WebSockets for communication between a Spring boot backend and an Angular frontend

Primary LanguageTypeScriptMIT LicenseMIT

Spring boot + Angular WebSocket example

This project consists out of two parts:

  • A backend written in Java using Spring boot to provide a WebSocket API.
  • A frontend written in TypeScript using Angular, STOMP.js and Sock.js to communicate with the backend

Run

You can run the backend by using the following command:

cd spring-boot-websockets-api
mvnw spring-boot:run

The frontend can be ran using the following commands:

cd angular-websockets-client
npm install
npm start