This is not C or C++ basic functions ! To do something that you’ve never done before whitout a piscine. Remind yourself at the beginning of your journey in computer science. Now look where you are standing. Time to shine
Contributors:
In this subject you will need to build a website for the mighty pong contest. Your website will help user run pong tournament and play against each other. There will be an admin view, chat with moderators, real time multiplayer online games. There will be guilds and wars! You will need to follow thoses rules:
- you must use the last stable version of every frameworks or libraries.
- Your website backend should be written in NestJS.
- You must use a postgresql database and no other databases.
- The front end must be written with any typescript framework.
- Your website should be a single page app, but user should be able to use the back button on the browser https://en.wikipedia.org/wiki/Singlepage_application
- Your website must be usable on the latest version to date on Google Chrome, Firefox, Safari.
- There must be no unhandled errors or warning when browsing through the website.
- You can use any library.
- Everything should run with a single call to docker-compose up –build
Because you are creating a fully-working website, there are a few security concerns that you will have to tackle
- Any password stored in your database must be encrypted
- Your website must be protected against SQL injections
- You must implement some kind of server-side validation for forms and any user input
- A user must login using the oauth system of 42 intranet
- A user must be able to choose a unique name that will be displayed on the website
- A user has a number of victory and loss and other stats (ladder level, number of won tournaments, achievements etc...)
- A user must have an avatar generated or uploaded by the user
- A user must be able to activate a 2 factor authentication (like google authenticator or a sms etc...)
- A user can be in 1 guild at a time
- A user can add other users as friends, and see their current status (online, offline, in a game...)
- Each user has a match history (including duel, ladder or tournaments games) that can be consulted by anyone logged-in
- Users must be able to create channels public/private or protected by a password
- Users must be able to send direct messages to other user
- Users must be able to block other user and therefore they will not see their messages anymore
- A user that create a new channel is automatically its owner until he leaves the channel - owner of a channel can add/change/remove a password to access to the channel - owner can select user to be administrator and is also administrator of the channel - administrator can ban or mute users for a certain amount of time
- Through the chat interface users should be able to ask other player to do a Pong match
- Through the chat interface users must be able to see other players profiles
The main purpose of this website is to play pong against other players and show everyone how good you are! Therefor we should be able to play pong directly on the website and live against an other player. It can be in a canvas or it can be with 3d effects, it can be ugly but it must be a pong like the one from 1972. If you want to, you can add power ups, different maps etc... but user must be able to play a default pong game without any added stuff. The game must be responsive! Other users can watch the game live without interfering in it.
![Screen Shot 2023-12-13 at 10 23 48 AM](https://private-user-images.githubusercontent.com/93767526/290139481-efe2baaa-d1fa-4ce3-b215-609e0aff132d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNTE1NzcsIm5iZiI6MTcyMzI1MTI3NywicGF0aCI6Ii85Mzc2NzUyNi8yOTAxMzk0ODEtZWZlMmJhYWEtZDFmYS00Y2UzLWIyMTUtNjA5ZTBhZmYxMzJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEwVDAwNTQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlMWNiZWRiZDBiZTdjYWE5ZjdkYmY3YjFlYzlkNTgzNzFlOWVkZWQxNGU1M2NkZTZkNjdkMDU3NTVlZDc2MTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-6cOT1hxVYudLpcfVLizlIWW5BeeNNEnUolMKEvn_dc)
- docker
- docker-compose
- FORTYTWO_APP_ID
- FORTYTWO_APP_SECRET
- FORTYTWO_APP_CALLBACK_URL
- (mail credentials can be skipped)
- set values in .env, frontend/.env, backend/.env (see .env_example for each)
- run commend line
docker-compse up --build