![Screen Shot 2023-06-05 at 3 32 22 PM](https://private-user-images.githubusercontent.com/58959408/243264589-fc3c968e-96ac-4770-a90d-3ab4a4d18941.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDgyMTEsIm5iZiI6MTcyNjAwNzkxMSwicGF0aCI6Ii81ODk1OTQwOC8yNDMyNjQ1ODktZmMzYzk2OGUtOTZhYy00NzcwLWE5MGQtM2FiNGE0ZDE4OTQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDIyMzgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2NThhMTI2Mzc5MzNhZjk2ZjdjNmU0YWFmYzhlOWE5OGQyMDQyZWI3OWFkZDlkMGVjNTI1YjEzNmE5ZWYxMWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LZ7qNci1KTdcbyj7ufi4a2ial8SfTfRHbRn4VUOye5U)
![Screen Shot 2023-06-06 at 8 32 07 PM](https://private-user-images.githubusercontent.com/58959408/243673396-167c8acf-759a-48c4-a0be-71859a6b30c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDgyMTEsIm5iZiI6MTcyNjAwNzkxMSwicGF0aCI6Ii81ODk1OTQwOC8yNDM2NzMzOTYtMTY3YzhhY2YtNzU5YS00OGM0LWEwYmUtNzE4NTlhNmIzMGMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDIyMzgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlYTZiMjI1YzU1NjE5ZTZkOWVhYTlkM2ZhZTBmN2QwYTlkZWE3ZDU0ODBmN2I1NTA4NWFjODg2MDA3Y2E0YmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MAMM6yLjw3d4fEyog7OHVuLQEZ4A650ajAuibFXBamk)
- 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
[email protected]
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:
![Screen Shot 2023-06-09 at 12 31 32 PM](https://private-user-images.githubusercontent.com/58959408/244578938-d5ba585f-68cb-4a9e-ba31-b512f0d902a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDgyMTEsIm5iZiI6MTcyNjAwNzkxMSwicGF0aCI6Ii81ODk1OTQwOC8yNDQ1Nzg5MzgtZDViYTU4NWYtNjhjYi00YTllLWJhMzEtYjUxMmYwZDkwMmE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDIyMzgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0MjI1MjE2YTJkNzIzOTIxZWU4OWFhZTkxZGZlNWI3ODZhOTY3OTU1MzMyODhjNGU5ZjIyMjRmNDM5MWU4MzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9pHCEYDnmOqHhLddAGtCEJy3IqWlaR4dAnFDOY2j4js)
- Further down the website, in the field 'Redirect URI'
![Screen Shot 2023-06-09 at 12 33 50 PM](https://private-user-images.githubusercontent.com/58959408/244579161-f7a11fbb-e3fa-4fe6-9157-2b371f6b2306.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDgyMTEsIm5iZiI6MTcyNjAwNzkxMSwicGF0aCI6Ii81ODk1OTQwOC8yNDQ1NzkxNjEtZjdhMTFmYmItZTNmYS00ZmU2LTkxNTctMmIzNzFmNmIyMzA2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDIyMzgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyYWQ3ODI5NThiNDFhYmE1ZWM2N2I5ZGZhNjExOGRhNGUzZjQ5ZWIxOWI4YmFjZjgwZGM1MmQzOGJjNzI4NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YZ56bc2M2A2vJ9BGyLyAvaCUnVcSJKTFt-zbMkv6KPU)
Copy and paste the following:
http://<HOST_URL>:3000/authentication/callback
and click submit.
![Screen Shot 2023-06-09 at 12 35 40 PM](https://private-user-images.githubusercontent.com/58959408/244579560-0d59270b-4a91-45ba-b755-3d4df6023ae3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDgyMTEsIm5iZiI6MTcyNjAwNzkxMSwicGF0aCI6Ii81ODk1OTQwOC8yNDQ1Nzk1NjAtMGQ1OTI3MGItNGE5MS00NWJhLWI3NTUtM2Q0ZGY2MDIzYWUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDIyMzgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzZDU2ZDdmMTBlODBmMzk5Y2E2M2YzNTc5N2FkYTYxMTRkMmFlMTg5ZTBmMzA1N2YxZGQ3NzM2YTNhMjczZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cwQFpWUYBAHT6KZJW8FnJkscMP6LvsX2eoY5e9FpmPQ)
- Head back to your iTerm and copy the following to iTerm:
cd .. && docker-compose up --build