Giter Club home page Giter Club logo

ft_transcendence's Introduction

ft_transcendence

Overview

ft_transcendence is a web application designed for the mighty Pong contest. It enables users to engage in real-time multiplayer online Pong games while offering additional features such as chat and user account management.

Project Requirements

  • Backend: The project's backend is built using NestJS.
  • Frontend: The frontend is developed using React.js with TypeScript.
  • Database: PostgreSQL is used as the primary database.
  • Single-Page Application: The website is designed as a single-page application with support for browser navigation. Browser Compatibility: The website is compatible with the latest stable version of Google Chrome and one additional web browser of our choice.
  • Error Handling: The website ensures a smooth user experience with no unhandled errors or warnings.
  • Docker: The project can be launched with a single call to docker-compose up --build, including support for Docker in rootless mode for Linux.

Security Concerns

To ensure the security of our application, we've implemented the following measures:

  • Password Hashing: All passwords stored in the database are securely hashed.
  • SQL Injection Prevention: The website is protected against SQL injection attacks.
  • Server-side Validation: Forms and user inputs are validated on the server-side to prevent malicious input.

Note: Please note that sensitive information such as credentials and API keys are stored locally in a .env file and are not committed to the Git repository for security reasons.

User Account

  • OAuth Login: Users can log in using the OAuth system of the 42 intranet.
  • Unique Usernames: Users can choose a unique display name for their profile.
  • Avatar Upload: Users can upload avatars, with a default avatar provided for those who don't.
  • Two-Factor Authentication: Users can enable two-factor authentication for enhanced security.
  • Friends and Status: Users can add friends, see their current status, and view stats on their profile.
  • Match History: A comprehensive match history is available, including 1v1 games and ladder matches.

Chat

Our chat feature allows users to:

  • Create public, private, or password-protected chat channels.
  • Send direct messages to other users.
  • Block unwanted users to stop receiving messages.
  • Set channel passwords and manage channel administration.
  • Invite other users to play Pong games through the chat interface.
  • Access other player's profiles via the chat interface.

Game

The core feature of the website is playing Pong:

  • Users can play live Pong games directly on the website.
  • A matchmaking system allows users to find opponents automatically.
  • Customization options are available, including power-ups and different maps.
  • The game is responsive and faithful to the original Pong (1972).

ScreeShots:

Landing Page: localhost_5173_ Home: localhost_5173_home (11) Chat: localhost_5173_home (5) (1) localhost_5173_home (4) (1) Profile: localhost_5173_home (3) (1) LeaderBoard: localhost_5173_home (10) Game: localhost_5173_home (7) (2) localhost_5173_home (8) (1) localhost_5173_home (9) (1)

ft_transcendence's People

Contributors

baraegh avatar rimney avatar medfx69 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar VON avatar  avatar

Watchers

 avatar

ft_transcendence's Issues

msg and grops

tasks of to day

Todo

  • api for create msg
  • api for create groups
  • api for show all msgs
  • api for fetch grops with user
  • api for fetch Personel chat with user
  • api for fetch all channels with user

backend : authentication

i end it authentication and authorization , still some changes.

Todo

  • make middleware
  • add signup and singin with normal user to test
  • manage refresh token with cookies

tables

i end it authentication and authorization , still some changes.

Todo

  • request friend
  • accept friend and fix all bugs
  • create channel

chat and friends

##TODO

  • join group
  • delete
  • block
  • show all users
  • show all groups except private and personnel

Profile

##TODO

  • edite profile
  • edit setting in chat
  • add attribute to match history : the game is end
  • create match
  • edit on match
  • match history
  • end game: add win and los to user
  • profile : block, pending
  • leaderbourd
  • ranking in chat

setting of group

##TODO for owner

  • mute member group for owner
  • remove member from group
  • clear chat
  • delete group
  • add admin
  • invite user to group
  • edit on the group
  • api for check the name of group id unique
  • api for show the owner and users and admins with id and image and name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.