mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Merge branch 'main' of https://github.com/louis-antoine-etsmtl/EvalueTonSavoir into melanie_ite4
This commit is contained in:
commit
f2c5232565
7 changed files with 24 additions and 10 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
[](https://github.com/louis-antoine-etsmtl/EvalueTonSavoir/actions/workflows/frontend-deploy.yml)
|
||||||
|
[](https://github.com/louis-antoine-etsmtl/EvalueTonSavoir/actions/workflows/backend-deploy.yml)
|
||||||
|
[](https://github.com/louis-antoine-etsmtl/EvalueTonSavoir/actions/workflows/deploy.yml)
|
||||||
|
|
||||||
# EvalueTonSavoir
|
# EvalueTonSavoir
|
||||||
|
|
||||||
EvalueTonSavoir est une plateforme open source et auto-hébergée qui poursuit le développement du code provenant de https://github.com/ETS-PFE004-Plateforme-sondage-minitest. Cette plateforme minimaliste est conçue comme un outil d'apprentissage et d'enseignement, offrant une solution simple et efficace pour la création de quiz utilisant le format GIFT, similaire à Moodle.
|
EvalueTonSavoir est une plateforme open source et auto-hébergée qui poursuit le développement du code provenant de https://github.com/ETS-PFE004-Plateforme-sondage-minitest. Cette plateforme minimaliste est conçue comme un outil d'apprentissage et d'enseignement, offrant une solution simple et efficace pour la création de quiz utilisant le format GIFT, similaire à Moodle.
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@ describe('MultipleChoiceQuestion', () => {
|
||||||
globalFeedback="feedback"
|
globalFeedback="feedback"
|
||||||
questionTitle="Test Question"
|
questionTitle="Test Question"
|
||||||
choices={choices}
|
choices={choices}
|
||||||
handleOnSubmitAnswer={mockHandleOnSubmitAnswer}
|
handleOnSubmitAnswer={mockHandleOnSubmitAnswer} questionContent={''} />
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ describe('NumericalQuestion Component', () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
render(<NumericalQuestion {...sampleProps} />);
|
render(<NumericalQuestion questionContent={''} {...sampleProps} />);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders correctly', () => {
|
it('renders correctly', () => {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ describe('ShortAnswerQuestion Component', () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
render(<ShortAnswerQuestion {...sampleProps} />);
|
render(<ShortAnswerQuestion questionContent={''} {...sampleProps} />);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders correctly', () => {
|
it('renders correctly', () => {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ describe('TrueFalseQuestion Component', () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
render(<TrueFalseQuestion {...sampleProps} />);
|
render(<TrueFalseQuestion questionContent={''} {...sampleProps} />);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders correctly', () => {
|
it('renders correctly', () => {
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,16 @@ const ManageRoom: React.FC = () => {
|
||||||
socket.on('create-failure', () => {
|
socket.on('create-failure', () => {
|
||||||
console.log('Error creating room.');
|
console.log('Error creating room.');
|
||||||
});
|
});
|
||||||
|
socket.on('user-joined', (user: UserType) => {
|
||||||
|
|
||||||
|
setUsers((prevUsers) => [...prevUsers, user]);
|
||||||
|
|
||||||
|
if (quizMode === 'teacher') {
|
||||||
|
webSocketService.nextQuestion(roomName, currentQuestion);
|
||||||
|
} else if (quizMode === 'student') {
|
||||||
|
webSocketService.launchStudentModeQuiz(roomName, quizQuestions);
|
||||||
|
}
|
||||||
|
});
|
||||||
socket.on('join-failure', (message) => {
|
socket.on('join-failure', (message) => {
|
||||||
setConnectingError(message);
|
setConnectingError(message);
|
||||||
setSocket(null);
|
setSocket(null);
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ services:
|
||||||
container_name: frontend
|
container_name: frontend
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
|
restart: always
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: evaluetonsavoir/evaluetonsavoir-backend:latest
|
image: evaluetonsavoir/evaluetonsavoir-backend:latest
|
||||||
|
|
@ -24,6 +25,7 @@ services:
|
||||||
FRONTEND_URL: "http://localhost:5173"
|
FRONTEND_URL: "http://localhost:5173"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
|
restart: always
|
||||||
|
|
||||||
# Ce conteneur sert de routeur pour assurer le bon fonctionnement de l'application
|
# Ce conteneur sert de routeur pour assurer le bon fonctionnement de l'application
|
||||||
nginx:
|
nginx:
|
||||||
|
|
@ -34,6 +36,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
|
restart: always
|
||||||
|
|
||||||
# Ce conteneur est la base de données principale pour l'application
|
# Ce conteneur est la base de données principale pour l'application
|
||||||
mongo:
|
mongo:
|
||||||
|
|
@ -44,7 +47,7 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
volumes:
|
volumes:
|
||||||
- mongodb_data:/data/db
|
- mongodb_data:/data/db
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
|
||||||
# Ce conteneur assure que l'application est à jour en allant chercher s'il y a des mises à jours à chaque heure
|
# Ce conteneur assure que l'application est à jour en allant chercher s'il y a des mises à jours à chaque heure
|
||||||
watchtower:
|
watchtower:
|
||||||
|
|
@ -57,8 +60,8 @@ services:
|
||||||
- WATCHTOWER_CLEANUP=true
|
- WATCHTOWER_CLEANUP=true
|
||||||
- WATCHTOWER_DEBUG=true
|
- WATCHTOWER_DEBUG=true
|
||||||
- WATCHTOWER_INCLUDE_RESTARTING=true
|
- WATCHTOWER_INCLUDE_RESTARTING=true
|
||||||
- WATCHTOWER_POLL_INTERVAL=7200 # every hour
|
- WATCHTOWER_SCHEDULE=0 0 5 * * * # At 5 am everyday
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongodb_data:
|
mongodb_data:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue