Use Node.js 24 and Java 21. The frontend runs on maintained Angular 21 and the backend runs on Spring Boot 4.0.8. Spring Boot 4 uses Jakarta APIs and the new spring.mongodb.* connection properties; update deployment overrides that still use spring.data.mongodb.host/port/database/uri.
Install and verify the frontend from the repository root:
npm ci --ignore-scripts
npm audit --audit-level=low
npm run build
npm testBuild and test the backend from ChatApplication with mvn -B verify. Production still requires the application's configured MongoDB. Context tests do not replace database integration testing; frontend HTTP and browser regressions use controlled mock responses.
Messages received over STOMP are inserted as text, preventing markup in a message from becoming executable HTML. Local search and avatar components replace unmaintained libraries. Duplicate STOMP handlers now have distinct routes, leaving normal message sending at /send/message.
The lockfile removes the old vulnerable Angular/build/test dependency trees. Spring, Jackson, and embedded Tomcat are upgraded to patched versions. Weekly Dependabot updates and pinned GitHub Actions run clean installs, npm advisories, production builds, tests, and Maven verification. Maven vulnerability findings should also be reviewed through GitHub's dependency graph/Dependabot; the Maven build alone is not a vulnerability scanner.
Bundle-size and legacy typing warnings remain visible. No production error budget or advisory is suppressed. A clean advisory scan is limited to vulnerabilities known to its database and is not a guarantee against application security issues.
This application remains a prototype with API endpoints that do not enforce a complete authenticated identity and resource authorization policy. Run it only on the local machine. The backend binds to 127.0.0.1 by default and accepts browser origins http://localhost:4200 and http://127.0.0.1:4200. Public deployment requires a separate authentication and authorization migration, including WebSocket access where applicable; loopback/CORS restrictions and dependency patches do not provide those controls.
Embedded-server regressions load the main configuration and verify the actual server factory's loopback address, accepted local preflights, rejected foreign/opaque origins, and rejected foreign simple requests. These tests do not override the listener address.
All ten former mutation GET routes now require POST, including friend-list activity updates, favourites, room membership, and soft deletion. Existing Angular clients send JSON {} with the same paths and response contracts. Originless GET requests now return 405; allowed local POST requests work and foreign POST requests are rejected. Favourite/message listing GETs return their filtered data without writing it back. Socket origins use the same exact local origins without trailing slashes.
New registrations and password changes use BCrypt with cost 12, and password fields are accepted only on input and excluded from all JSON responses. Leaving the profile's password field blank keeps the stored hash. Existing plaintext database records are no longer accepted by login: an administrator must securely migrate their credentials to BCrypt or reset those accounts before reuse. The source fix does not rewrite an existing external database or add authorization to profile-edit endpoints.