GithubHelp home page GithubHelp logo

nimon77 / ft_transcendence Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 4.0 8.34 MB

JavaScript 0.80% Dockerfile 0.38% TypeScript 36.91% Vue 37.24% HTML 0.32% Shell 0.36% CSS 23.99%
ft-transcendence 42 42paris 42born2code 42cursus typescript vuejs nestjs

ft_transcendence's Introduction

bananaponggif

BananaPong

Final project of the 42_cursus. (Version: 9)

BananaPong is a onepage fullstack website where you can play pong with players among other things such as JWT / 2fa authentification, a chat, private messages, friends list, profiles, a match-making system, a spectating system and modifications to the pong game such as different background and gamemodes.

BananaPong uses the following technologies:

  • VueJS
  • NestJS
  • PostgreSQL

Usage

Test server: You can try our project on https://transcendence.nimon.fr/ (In case of error 500 at login contact me on slack @nimon or @nsimon)

Before starting, please replace the FORTYTWO_ID, FORTYTWO_SECRET and AUTH_CALLBACK variables in docker/backend.env with your own (from the 42 API).
Then, run the following command:

docker-compose up --build

We also provided shell scripts, you can use start.sh to start the project and clean.sh with the arguments all (to delete all the downloaded files) or bbd (only delete the database).

If everything went well, you should be able to access the website at http://localhost:8080.

If you'd like to modify additional settings, please feel free to do so in the others environment files.

Upon first launch, you will be asked to authenticate with your 42 account. If you don't have one, please uncomment the @Get('generate/:id') in /backend/src/auth/auth.controller.ts and then call that method with your desired id.

API

Our API is fully documented with swagger at http://localhost:3000/api/ (using openapi3.0).
Thanks to @Amoenus for the Swagger Dark Theme.

Make sure sure you input a correct JWT token in the Authorize menu. Your JWT token is the one you get after logging in with your 42 account. It's located in the LocalStorage of your browser under the name token.

Database

We use pgadmin4 to manage our database, it's located at http://localhost:5000/.
The email is [email protected] and the password is transcendence you may change them in the docker/pgadmin.env file.

Once logging in, the database may send a lot of logs to the console. We tried disabling them, but it doesn't work everytime.

We used TypeORM for our database, it provides a lot of features such as migrations, relations, and most importantly, security.

Docs

NESTJS documentation is available at https://docs.nestjs.com/.
VUEJS (vuejs 2) documentation is available at https://vuejs.org/v2/guide/.
VUEX documentation is available at https://vuex.vuejs.org/.
SWAGGER (OAS 3.0) documentation is available at https://swagger.io/specification/. (I Heavily recommend the use of https://editor.swagger.io)
TYPEORM documentation is available at https://typeorm.io/.

Screenshots

loginpng 2falogin finishloginpng mainpng changepng 2fa chatpng dmpng friendspng profilepng pregamepng gamepng

MADE WITH LOVE BY :


execrate0 (ahallain)

Intra 42

Assxios (droge)

Intra 42

Nimon77 (nsimon)

Intra 42

ademjemaa (adjemaa)

Intra 42

mmaj0708 (mmaj)

Intra 42

ft_transcendence's People

Contributors

ademjemaa avatar alexandre-hallaine avatar assxios avatar mmaj0708 avatar nimon77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.