Skip to content

RhesusP/ft_transcendence

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_transcendence

Surprise... It's a game! 🎮

ft_transcendence

About

This is the final project of the 42 Common Core. The goal is to create a website that allows users to play a game of pong against each other. The website also includes a friend system, a tournament system, and another game.

Usage

Requirements

  • Docker
  • Docker Compose

Installation

git clone [email protected]:vogsphere/intra-uuid-2e746b92-9aa3-4104-b89e-23b1aea8d67e-5784037-rrebois
docker compose up --build

Important

Before launching the project, please fill the .env file as described below.

Environment variables

First, copy the .env.example file to .env and fill the variables.

cp .env.example .env
Variable Description
SERVER_IP IP address of the server
SECRET_KEY Secret key for the application
ALLOWED_HOSTS Hosts allowed to connect
SQL_ENGINE SQL engine to be used (we use postgresql)
SQL_DATABASE Name of the SQL database
SQL_USER SQL database user
SQL_PASSWORD Password for the SQL user
SQL_HOST Host of the SQL database
SQL_PORT Port of the SQL database (must be the same as in docker-compose.yml)
DATABASE Database configuration
POSTGRES_USER PostgreSQL user
POSTGRES_PASSWORD Password for the PostgreSQL user
POSTGRES_DB Name of the PostgreSQL database
DJANGO_SUPERUSER_USERNAME Django superuser username
DJANGO_SUPERUSER_PASSWORD Django superuser password
DJANGO_SUPERUSER_EMAIL Django superuser email
TOTP_SECRET_KEY TOTP secret key
REFRESH_SECRET_KEY Refresh secret key
EMAIL_SENDER Email sender address
EMAIL_SENDER_PASS Password for the email sender
SERVER https://$SERVER_IP
SERVER_URL $SERVER:8443 (port must be the same as in docker-compose.yml)
API_42_CALL_LOCALHOST 42 provider redirect uri for localhost
API_42_CALL_(ip_address) 42 provider redirect uri for specific IP address
CLIENT42_ID Client ID for 42 API
CLIENT42_SECRET Client secret for 42 API
CLIENT42_SECRET_NEXT Next client secret for 42 API
FRONT_DEV 0

Note

To get the CLIENT42_ID and CLIENT42_SECRET, you need to create an application on the 42 API here.

Access the website

Once credentials are filled, and containers are running, you can access the website at the following URLs:

Authors

Author GitHub profile
Tanguy Gellon (tgellon) @tang1304
Rolando Rebois (rrebois) @RRebois
Felipe Belfort (fbelfort) @FelipeBelfort
Camille Bernot (cbernot) @RhesusP

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.4%
  • Python 41.7%
  • CSS 1.9%
  • Makefile 0.4%
  • Dockerfile 0.3%
  • HTML 0.2%
  • Shell 0.1%