COS301-SE-2024 / The-Republic

Imagine a fusion of ‘Eskom se Push’ and ‘X’. The Republic allows users to raise concerns and spread awareness about government services through incident reports, with cool data visualizations providing a dynamic overview of public sentiment on service delivery.
https://the-republic-six.vercel.app
7 stars 0 forks source link

Initial implementation of gamification system and location based leaderboard #225

Closed hlokomani closed 1 month ago

hlokomani commented 1 month ago

Description

This PR introduces a comprehensive gamification system, including a points mechanism, location-based leaderboards, and user suspension/blocking features. It also includes significant updates to the User model and related services.

Major Changes

Points System

Leaderboard Functionality

User Model and Repository Updates

Suspension and Blocking Features

Service Updates

Implementation Details

Points Awarding Rules

User Restrictions

Leaderboard and User Position

Testing

API Changes

This endpoint retrieves the leaderboard data and the requesting user's position.

Request Body:

{
  "userId": "string",
  "province": "string" (optional),
  "city": "string" (optional),
  "suburb": "string" (optional)
}

Database Migrations

NEXT STEPS: