No description
  • Java 97.7%
  • CSS 1.4%
  • Dockerfile 0.5%
  • Makefile 0.4%
Find a file
2026-11-09 15:33:52 +01:00
.idea Rename the model to GestionEcoleModel, give DBAction one connection per thread and replace the interface with the teacher's base adapted to Tomcat 10 2026-10-27 12:27:15 +01:00
GestionEcoleInterface Add a Tailwind design, clearer button labels and a direct link to the student list 2026-11-09 15:33:52 +01:00
GestionEcoleModel Refuse lending a borrowed book, report failed commits and update the model documentation 2026-11-09 11:41:00 +01:00
.dockerignore Add a Makefile that builds and runs the whole project with Docker 2026-11-09 10:22:25 +01:00
.gitattributes Add test descriptions and normalize code style, comments and error handling 2026-10-03 13:35:42 +02:00
.gitignore Add a Tailwind design to the menu, home page and student pages 2026-11-09 15:25:52 +01:00
Dockerfile Add the student and enrollment DAO methods, Swiss grading and configurable ports 2026-11-09 11:32:23 +01:00
Makefile Add the student and enrollment DAO methods, Swiss grading and configurable ports 2026-11-09 11:32:23 +01:00
README.md Add the student and enrollment DAO methods, Swiss grading and configurable ports 2026-11-09 11:32:23 +01:00

Gestion d'école

Projet JEE de gestion d'une école (élèves, chambres, livres, UV et inscriptions), en architecture MVC2 / 3-tiers. Le dépôt contient deux projets :

Dossier Projet Contenu
GestionEcoleModel/ Modèle (couche persistance) Beans, DAO JDBC, base MySQL, tests JUnit, application Swing de démonstration
GestionEcoleInterface/ Interface (contrôleur + vues) Application web : servlet contrôleur ControleurPrincipal, classes métier et pages JSP, déployée sur Tomcat

Le projet Interface dépend du projet Modèle : il appelle ses DAO et n'accède jamais directement à la base.

Lancer l'application

Il suffit d'avoir Docker et make : le JDK, Tomcat et MySQL tournent dans des conteneurs.

make --version indique si make est déjà présent. Sinon, pour l'installer :

Système Commande
macOS xcode-select --install (outils en ligne de commande d'Apple)
Windows winget install ezwinports.make, puis ouvrir un nouveau terminal

Ensuite, Docker démarré, depuis ce dossier :

make

La commande compile le Modèle et l'Interface, démarre MySQL, phpMyAdmin et Tomcat, puis rend la main quand tout est prêt. L'application est alors sur http://localhost:18080/GestionEcoleInterface/ et phpMyAdmin sur http://localhost:8091.

Si un port est déjà pris (Tomcat sur 18080, MySQL sur 8889, par exemple avec MAMP), il se change au lancement : make WEB_PORT=18081 DB_PORT=3307.

Commande Effet
make Compile et démarre tout
make build Compile seulement
make logs Affiche les journaux de Tomcat
make stop Arrête tout, les données sont conservées
make clean Arrête tout et supprime l'image compilée, les données sont conservées

Sans make, la commande équivalente est :

docker compose -f GestionEcoleModel/docker-compose.yml --profile web up -d --build --wait

Ouvrir les projets

  • IntelliJ IDEA : ouvrir ce dossier. Le projet IntelliJ déclare les deux modules, GestionEcoleModel et GestionEcoleInterface.
  • Eclipse : importer les deux dossiers (File > Import > Existing Projects into Workspace, en choisissant ce dossier comme racine).

Chaque projet a son propre README : Modèle · Interface.