- 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
- Now copy this into the .env file your currently in:
VUE_APP_HOST_URL='http://<HOST_URL>'
- Once copied, save and quit by doing
wq
on your keyboard. - Copy the following to iTerm:
cd .. && vim db.env
- 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
- Once copied, save and quit by doing
wq
on your keyboard. - Copy the following to iTerm:
cd backend && vim .env
- 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>'
-
Once copied, save and quit by doing
wq
on your keyboard. -
Now click on this website: https://profile.intra.42.fr/oauth/applications/new
-
On the website, type in any name you like:
- Further down the website, in the field 'Redirect URI'
Copy and paste the following:
http://<HOST_URL>:3000/authentication/callback
and click submit.
- Head back to your iTerm and copy the following to iTerm:
cd .. && docker-compose up --build