refactor(api): reorganize services folder by game mode #6
Labels
No labels
feature
multiplayer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: forgejo-lila/lila#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Currently all services sit flat under
apps/api/src/services/:gameService.ts— single-player game logiclobbyService.ts— lobby managementmultiplayerGameService.ts— multiplayer game logicAs game modes grow, this will become hard to navigate. The folder
should be reorganized by mode:
Proposed structure
apps/api/src/services/
singleplayer/
gameService.ts
gameService.test.ts
multiplayer/
gameService.ts
lobbyService.ts
shared/
(any logic shared across modes)
When to do this
When a third service appears, or when single-player gets its own
mode variants. Not before — premature structure adds friction without
benefit.
Acceptance criteria