Skip to content

pasqualerossi/42_Transcendence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

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
PGADMIN_DEFAULT_EMAIL=trans@trans.com
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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks