GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nikkxll/42-transcendence: Recreation of a PONG game

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

502 Commits
502 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
frontend
frontend
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

Transcendence

Recreation of a PONG game developed by @DaveeHorvath, @madfcat, @nikkxll, @dnapi and @taoramo

Table of Contents

  • Implemented modules
    • Mandatory part
    • Bonus part
  • Technical stack
  • Environment
    • Setting Up Environment Variables
  • Install and run
  • Game

Implemented modules

Mandatory part

  1. Framework as backend (major)
  2. Front-end framework or toolkit (minor) + Database for the backend (minor)
  3. Standard user management, authentication, users across tournaments (major)
  4. Remote authentication (major)
  5. Multiplayers (more than 2 in the same game) (major)
  6. AI Opponent (major)
  7. WAF/ModSecurity with Hardened Configuration and HashiCorp Vault for Secrets Management (major)

Bonus part

  1. Advanced 3D techniques (major)
  2. Game Customization Options (minor) + Expanding Browser Compatibility (minor)

Technical stack

Stack

Environment

The application requires the following environment variables to be configured. These variables control the app's behavior and connect it to external services. Ensure these variables are set before running the application.

Variable Name Description Example Value
DEBUG Set to True for development and False for production. True or False
HCP_CLIENT_ID The client ID for the HCP service. your-client-id
HCP_CLIENT_SECRET The client secret for the HCP service. your-client-secret
OAUTH_REDIRECT The OAuth redirect URI used during authentication. http://localhost:8000/callback
OAUTH_AUTHORIZE_URL The URL to the OAuth authorization endpoint. https://auth.example.com/authorize
OAUTH_TOKEN_URL The URL to the OAuth token endpoint. https://auth.example.com/token
OAUTH_API_URL The base URL for the OAuth API. https://api.example.com
POSTGRES_USER The username for connecting to the PostgreSQL database. postgres
POSTGRES_HOST The host for the PostgreSQL database. localhost
POSTGRES_DB The name of the PostgreSQL database. my_database
POSTGRES_PASSWORD The password for the PostgreSQL user. yourpassword
DJANGO_HOST The hostname or IP address for the Django server. 127.0.0.1 or 0.0.0.0
DJANGO_SUPERUSER_USERNAME The username for the default Django superuser. admin
DJANGO_SUPERUSER_EMAIL The email for the default Django superuser. [email protected]

Setting Up Environment Variables

Follow these steps to configure the required environment variables:

Create a .env file

Place a file named .env in the root of your project directory with the following content (presented values are used just as an example, you should put your own instead):

DEBUG=True
HCP_CLIENT_ID=your-client-id
HCP_CLIENT_SECRET=your-client-secret
OAUTH_REDIRECT=http://localhost:8000/callback
OAUTH_AUTHORIZE_URL=https://auth.example.com/authorize
OAUTH_TOKEN_URL=https://auth.example.com/token
OAUTH_API_URL=https://api.example.com
POSTGRES_USER=postgres
POSTGRES_HOST=localhost
POSTGRES_DB=my_database
POSTGRES_PASSWORD=yourpassword
DJANGO_HOST=127.0.0.1
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_EMAIL=[email protected]

Install and run

Clone the project repository

git clone [email protected]:DaveeHorvath/ascension.git

Go to the root of the project

cd ascension

Run command below to build and launch docker infrastructure

docker compose up --build

Then open browser at https://localhost:8443/

Game

User interface of the game and menus presented below

1

Landing Page View

2

Single Game Lobby

3

Tournament Lobby

4

Game View

5

Game View (3D Mode)

[email protected] | LinkedIn: dnikifor | Tableau: dmitriinikiforov

About

Recreation of a PONG game

Topics

42-transcendencedjangodockerhashicorpjavascriptthreejs

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.