Skip to content

Duru-DR/PingPongDjango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PingPong Platform - Backend System

Group Project | My Role: Backend, Security & DevOps Lead
Django | PostgreSQL | Docker | Nginx | WebSockets | OAuth/JWT | GDPR Compliance

πŸ”§ My Contributions

Containerized Services with Docker & Docker Compose:

Django backend

PostgreSQL with persistent volumes

Redis for WebSocket messaging

Nginx reverse proxy with SSL termination

Production-Grade Nginx Configuration:

Load balancing

Static file serving

WebSocket proxy (/ws/ route)

πŸ›‘οΈ Security Modules

  • Two-Factor Authentication (2FA) with TOTP (Google Authenticator)
  • JWT Token Authentication with refresh tokens
  • OAuth 2.0 Integration (Google + 42Intra)
  • Password Hashing (bcrypt)
  • SQL Injection/XSS Protection (Django ORM sanitization)

πŸ“Š GDPR Compliance

  • Local data management dashboard
  • Account deletion pipeline with confirmation

πŸ‘₯ User Management

  • Registration/login
  • Profile management
  • Friend system with online status
  • Blocklist functionality

πŸ’¬ Real-Time Chat

  • WebSocket-based direct messaging
  • Game invitations via chat
  • Tournament notifications
  • Message persistence with privacy controls
  • and more

🐳 Deployment Guide

Prerequisites

Docker 20.10+

Docker Compose 2.5+

Production Setup

Clone repository:

git clone https://github.com/Duru-DR/PingPongDjango.git
cd PingPongDjango/Manage_services
make

πŸ“ˆ System Architecture

graph TD
  classDef component fill:#2d2d2d,stroke:#666,color:#fff;
  classDef database fill:#1a3d5c,stroke:#4a90e2,color:#fff;
  classDef arrow stroke:#4a90e2,color:#fff;

  A[Client] -->|HTTPS| B[Nginx:443]
  B -->|Proxy| C[Django:8800]
  B -->|WS| D[WebSockets]
  C --> E[(PostgreSQL)]
  C --> F[Redis]
  D --> F

  class A arrow;
  class B,C,D component;
  class E,F database;
Loading

About

PingPong Real-Time Game (Backend/DevOps Contribution)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages