g00glen00b / spring-boot-angular-websockets

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 52.9%Language:Java 31.3%Language:HTML 6.7%Language:CSS 5.8%Language:JavaScript 3.3%