Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Leaderboard Entity #6

Open
5 tasks
Josue19-08 opened this issue Feb 3, 2025 · 3 comments
Open
5 tasks

Implement Leaderboard Entity #6

Josue19-08 opened this issue Feb 3, 2025 · 3 comments

Comments

@Josue19-08
Copy link
Contributor

📌 Issue: Implement Leaderboard Entity

🔹 Description

Define and develop the Leaderboard entity to track and rank players based on their in-game achievements and scores.


📂 Project Structure

  • Entity: src/modules/game/entities/leaderboard.entity.ts
  • Repository: src/modules/game/repositories/leaderboard.repository.ts
  • Service: src/modules/game/services/leaderboard.service.ts
  • Controller: src/modules/game/controllers/leaderboard.controller.ts
  • DTOs: src/modules/game/dtos/leaderboard.dto.ts

🛠️ Leaderboard Entity Attributes

Attribute Data Type Description
id number Unique leaderboard entry identifier (Primary Key).
userId number ID of the user being ranked.
score number Player's total score or ranking metric.
rank number The player's position in the leaderboard.
updatedAt Date Last time the leaderboard entry was updated.

📌 Tasks

  • Define Leaderboard entity.
  • Implement repository for leaderboard data.
  • Develop leaderboard service for score calculations.
  • Create controller for leaderboard-related endpoints.
  • Ensure data validation in DTOs.

✅ Acceptance Criteria

  • Players should have their scores tracked and ranked.
  • The leaderboard should update dynamically as scores change.
  • Endpoints should allow retrieving top players and individual rankings.
@ryzen-xp
Copy link

Is it okay if I tackle this?

@KevinLatino
Copy link

Hi @Josue19-08, I am Kevin Latino, I am a dojo coding member, Fullstack developer and Open Source Contributor ⛩️⛩️⛩️

I would like to work on implementing the Leaderboard entity to manage and rank players based on their achievements and scores in the game. I have experience developing modular systems in TypeScript with NestJS, including creating entities, repositories, services, and controllers. I can design an efficient structure to store and update ranking positions, implement service methods to calculate scores, and ensure data validation through DTOs. Additionally, I can optimize queries in the repository to improve system performance and scalability.

@portableDD
Copy link

Can I take this issue?
Eta: 4 hours

i will create the leaderboard entity and make it connet to each repository needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants