Giter Club home page Giter Club logo

42_transcendence's Introduction

Project Overview

Screen Shot 2023-06-05 at 3 32 22 PM

๐Ÿ’‚ Security

Screen Shot 2023-06-06 at 8 32 07 PM

๐Ÿ’ป Setup

  1. Copy the following to iTerm:
git clone https://github.com/pasqualerossi/42_Transcendence.git && cd 42_Transcendence && touch db.env && cd backend && touch .env && cd .. && cd frontend && vim .env
  1. Now copy this into the .env file your currently in:
VUE_APP_HOST_URL='http://<HOST_URL>'
  1. Once copied, save and quit by doing wq on your keyboard.
  2. Copy the following to iTerm:
cd .. && vim db.env
  1. Now copy this into the db.env file your currently in:
POSTGRES_USER=trans
POSTGRES_PASSWORD=trans
POSTGRES_DB=transcendence
[email protected]
PGADMIN_DEFAULT_PASSWORD=admin
  1. Once copied, save and quit by doing wq on your keyboard.
  2. Copy the following to iTerm:
cd backend && vim .env
  1. Copy the following to the .env file your currently in:
DB_HOST='postgres'
DB_PORT=5432
DB_USERNAME='trans'
DB_PASSWORD='trans'
DB_NAME='transcendence'
TWO_FACTOR_AUTHENTICATION_APP_NAME='transcendence'
JWT_ACCESS_TOKEN_SECRET='secretllul'
JWT_ACCESS_TOKEN_EXPIRATION_TIME='2000'
JWT_REFRESH_TOKEN_SECRET='secretllul_2'
JWT_REFRESH_TOKEN_EXPIRATION_TIME='2000'
FORTYTWO_APP_ID='<UID_OF_YOUR_42_API_APP>'
FORTYTWO_APP_SECRET='<SECRET_OF_YOUR_42_API_APP>'
CALLBACK_URL='http://<HOST_URL>:3000/authentication/callback'
VUE_APP_HOST_URL='http://<HOST_URL>'
  1. Once copied, save and quit by doing wq on your keyboard.

  2. Now click on this website: https://profile.intra.42.fr/oauth/applications/new

  3. On the website, type in any name you like:

Screen Shot 2023-06-09 at 12 31 32 PM
  1. Further down the website, in the field 'Redirect URI'
Screen Shot 2023-06-09 at 12 33 50 PM

Copy and paste the following:

http://<HOST_URL>:3000/authentication/callback

and click submit.

Screen Shot 2023-06-09 at 12 35 40 PM
  1. Head back to your iTerm and copy the following to iTerm:
cd .. && docker-compose up --build

42_transcendence's People

Contributors

pasqualerossi avatar

Watchers

 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.