Skip to content

Refactor backend architecture and implement device linking features#7

Merged
E-delSol merged 5 commits intomainfrom
feature/semaphore-realtime
Mar 21, 2026
Merged

Refactor backend architecture and implement device linking features#7
E-delSol merged 5 commits intomainfrom
feature/semaphore-realtime

Conversation

@E-delSol
Copy link
Owner

No description provided.

E-delSol added 5 commits March 7, 2026 11:58
- refactor project structure to enforce ports/adapters architecture
- introduce service interfaces and repository ports
- reorganize DTOs and mappers by feature
- add linking feature for device pairing
- implement link sessions with short linkCode
- add endpoints for create/confirm session
- add polling endpoint for session status
- add Flyway migration for link_code and confirmation fields
- add tests for linking service

Backend now supports authentication and device linking without Firebase.
…socket

Introduce realtime partner notifications when a user changes semaphore status.

PATCH /status now triggers a SemaphoreStatusChangedEvent sent through the websocket notification service.

This allows the partner device to update immediately without relying on polling.

Improves responsiveness and prepares the system for scalable realtime communication.
@E-delSol E-delSol merged commit afd678d into main Mar 21, 2026
4 checks passed
@E-delSol E-delSol deleted the feature/semaphore-realtime branch March 21, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant