Skip to content

implement the client-server architecture #33

@Deadlyflamemaster

Description

@Deadlyflamemaster

To implement the client-server architecture for your game with clean architecture, we’ll adopt a layered structure to separate concerns. This will keep the code organized, maintainable, and easy to test. We'll use Node.js with Express on the backend, MongoDB for data storage, and standard HTML/CSS/JavaScript for the front end.

Architecture Overview
We'll use three layers:

Presentation Layer (Front-End): Handles user interaction (HTML/CSS/JavaScript).

Business Logic Layer (Service Layer): Contains game logic (checking matches, calculating scores, etc.) and any rules or conditions.

Data Layer (Repository Layer): Handles database interaction for storing and retrieving player scores and leaderboard data.
This architecture allows minimal integration points and easier testing for each individual part.

Screenshot 2024-10-08 at 6 19 46 AM

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions