Secret Santa for LiveCampus
Cloner le projet à partir du repository
git clone https://github.com/MathiasGenibrel/SecretSanta.git
Installation de de docker via npm
npm install -g docker
Dans le dossier racine du projet
/.env
DATABASE="secretsanta"
Dans le dossier environment du projet
backend/src/environment/.env
SECRET_TOKEN="secrettoken"
HOSTNAME_DB="172.18.0.1"
DATABASE_DB="secretsanta"
USER_DB= "root"
PORT_DB="3307"
Commande pour construires les services
docker compose up
Lancement de docker
docker compose start
Ajout de la Base de Données
docker compose exec -T db mysql secretsanta < secretsanta.sql
Comptes pour se connecter à l'application
Login / Mot de passe :
- [email protected] / Livecampus2022.fr
- [email protected] / Livecampus2022.fr
- [email protected] / Livecampus2022.fr
- [email protected] / Livecampus2022.fr
Commande pour éxécuter les tests en backend
docker compose exec -i api npm test
Commande pour éxécuter les tests en frontend
docker compose exec -i web npm test
L'application en prod peux avoir des soucis sur la communication avec l'api du fait qu'il manque un certificat SSL, on peut changer celà en modifiant un paramètre navigateur : (Chrome Users)
chrome://flags/#block-insecure-private-network-requests
Et désactivé le paramètre.
Maintenant l'api devrait fonctionné. 🎉