Found 228 repositories(showing 30)
dave-elkan
An exploration into adding a dry controllers and a service/dao layer architecture to Express
ManishPal3340
Online Shopping System is a Java-based backend project built using Hibernate ORM and MySQL. It demonstrates a real-world e-commerce workflow including User management, Product catalog, Order processing, Order details, and Payment handling, following layered architecture (Entity, DAO, Service). Tech Stack: Java, Hibernate, MySQL, Maven
Ignorantashwin
Console-based Train Booking System built using Core Java, JDBC, and MySQL. Implements transaction management, rollback handling, and concurrency-safe seat booking. Structured with DAO, Service, and Entity layers following clean architecture principles.
Bhushan0249
Campus Recruit API streamlines the recruitment process by managing students, job postings, applications, interviews, users, and reports. Built with Spring Boot, Hibernate, and MySQL, it follows a layered architecture (Controller, Service, DAO). Features include CRUD operations, role-based access, and detailed reporting, tested using Postman.
Douaa1819
A simple web application built with Java EE and Hibernate for managing employees. It allows users to add, edit, delete, and view employee records, with a clean, user-friendly interface. The project follows the MVC architecture, with a DAO and service layer to handle data access and business logic
attoumbre
Des Servlets à la notion de service Web Les objectifs de ce travail pratique sont les suivants : Comprendre les mécanismes des Servlet Réaliser une application Web en utilisant Combinant JPA et les Servlet Comprendre les principes d’une architecture Rest Comprendre les bénéfices d’un framework comme Jersey Recommendations. Ce TP utilise des technologies abordées en cours d’un point de vue théorique, mais la documentation technique peut être facilement trouvée sur internet. Être autodidacte est une compétence essentielle pour tout informaticien; n'hésitez pas à chercher des tutoriels si vous êtes bloqués. Sujet L’objectif de ce projet est de continuer le développement d’une application type prise de RDV (doctolib). Organisation. Quand votre application JPA fonctionne correctement. Laissez votre base de données démarrée. Si vous avez déjà travaillez avec les servlets, n’hésitez pas à aller directement à la question 6. Partie 1 Servlet Question 1. Tout d’abord, modifiez votre fichier pom.xml. Changez le type de packaging vers un packaging de type war pour les applications webs <packaging>war</packaging> Ajoutez une dépendances à l’API des servlets <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> Vous noterez le scope qui est placé à provided ce qui veut dire que cette librairie sera fournie par le conteneur d’application et ne doit pas être embarqué au sein de l’application Web. Ajoutez enfin dans les plugins de build, celui de jetty qui permet de démarrer jetty depuis maven. <plugin> <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-maven-plugin --> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.31.v20200723</version> <configuration> <webApp> <contextPath>/</contextPath> </webApp> <httpConnector> <port>8080</port> </httpConnector> </configuration> </plugin> Testez votre config. Clic droit sur votre projet. run as -> maven build …-> mettre compile jetty:run dans le goal. équivalent de lancer compile jetty:run si vous utiliisez jetty dans la console. Vous pouvez stoppez jetty en cliquant sur le bouton rouge stop de la console eclipse. Question 2. Insertion de ressources statiques Créer un répertoire src/main/webapp. Ajoutez y un fichier index.html contenant Hello world. Relancez jetty. http://localhost:8080/index.html Vous devriez voir votre page web. L’ensemble des ressources statiques (html files, javascript file, images) de votre projet doivent se trouver dans le répertoire src/main/webapp Question 3. Création de votre première Servlet Créer une classe qui étend HttpServlet. Surchargez les méthodes doGet et doPost méthodes qui seront appelées lors de la réception d’un GET et d’un POST sur l’url “/myurl”. package servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(name="mytest", urlPatterns={"/myurl"}) public class MyServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter p = new PrintWriter(resp.getOutputStream()); p.print("Hello world"); p.flush(); } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // TODO Auto-generated method stub super.doPost(req, resp); } } Question 4. Création de votre première Servlet qui consomme les données d’un formulaire. Créer un fichier myform.html et placez y le code suivant. <html> <body> <FORM Method="POST" Action="/UserInfo"> Name : <INPUT type=”text” size=”20” name=”name”><BR> Firstname : <INPUT type=”text” size=”20” name=”firstname”><BR> Age : <INPUT type=”text” size=”2” name=”age”><BR> <INPUT type=submit value=Send> </FORM> </body> </html> Puis créer une classe Java UserInfo package servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(name="userinfo", urlPatterns={"/UserInfo"}) public class UserInfo extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<HTML>\n<BODY>\n" + "<H1>Recapitulatif des informations</H1>\n" + "<UL>\n" + " <LI>Nom: " + request.getParameter("name") + "\n" + " <LI>Prenom: " + request.getParameter("firstname") + "\n" + " <LI>Age: " + request.getParameter("age") + "\n" + "</UL>\n" + "</BODY></HTML>"); } } Testez votre application en vous rendant ici http://localhost:8080/myform.html . Parcourez ensuite les exemples suivants. http://www.commentcamarche.net/contents/servlets-330845945 Question 5. Retour sur l’application de prise de RDV A partir de cette base, construisez une page web qui retourne des informations issus de la base de données et un formulaire qui permet d’ajouter des éléments dans la base de données. Partie 2 JaxRS et OpenAPI Question 6. En avant pour les architectures Rest. Évidemment à partir de là, nous pourrions construire une architecture Rest manuellement. Cependant, gérez toutes les routes et les format de sérialisation de données à la main est une tâche fastidieuse. Pour cela des frameworks comme Jersey et les APIs JaxRS permettent de simplifier ce travail. Vue d'ensemble de JAX-RS JAX-RS est une API récente mais déjà bien fournie : Elle propose notamment des annotations spécifiques pour lier une URI et des verbes HTTP à des méthodes d'une classe Java. JAX-RS dispose également d'annotations capables d'injecter et de récupérer des données dans les entêtes d'une réponse ou depuis celles d'une requête. De même l'API JAX-RS fournit ce qu'il faut pour extraire et écrire ce que vous voulez dans le corps d'une requête/réponse HTTP. Enfin, en cas d'exception Java, JAX-RS est capable de produire une réponse avec le code HTTP le plus pertinent. Pour simplifier l’installation d’un environnement, je vous ai fournis un exemple fonctionnel avec JaxRS, et RestEasy. RESTEasy est un projet JBoss / Red Hat qui fournit divers framework pour vous aider à construire des services Web RESTful et des applications Java RESTful. Il s'agit d'une implémentation des RESTful Web Services de Jakarta (JaxRS), une spécification de la fondation Eclipse qui fournit une API Java pour les RESTful Web Services sur le protocole HTTP. De plus, RESTEasy implémente également l'API de la spécification MicroProfile REST Client. https://github.com/barais/JaxRSOpenAPI Forker ce projet et cloner le fork pour pouvoir travailler. Vous pourrez intégrer vos classes JPA et vos DAOs facilement. Observer le code et créer un premier service Web. Tester le service implanter l’aide de votre navigateur en vous rendant sur http://localhost:8080/pet/1 Créer quelques services REST simple et tester votre couche de service avec Postman. https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop Question 7. Créez la couche de service pour votre application. Écrire des exemples de WS REST correspondant au projet type prise de rdv Examples: http://www.mkyong.com/tutorials/jax-rs-tutorials/ Vous pouvez la tester grâce à des outils comme: https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop Il faut ajouter l’extension Postman rest client sur Mozilla ou Chrome. Question 8. Comprendre openAPI. Dans le readme.md du projet ici. https://github.com/barais/JaxRSOpenAPI Je montre comment ajouter la génération automatique du descripteur d’API conforme au standard openAPI. Je montre aussi comment intégrer swaggerUI afin de fournir une documentation lisible par un humain de votre API. Nous le faisons à la main, dans les comme SpringBoot, des modules particulier permettent d’automatiser ce travail. Bon TP Olivier et Adrien
DimitriosDalaklidhs
Hospital Management System built with Spring Boot, JWT Authentication, and layered architecture (Controller-Service-DAO).
patodemjan
Spring Boot REST API using layered architecture with DAO, Service, and Controller. Includes basic CRUD operations and database integration with JPA.
Nigel-funguru
TestApp to prove concept of architectural concept of using a shared “service” spring context to share domain, DAO & session and transactional classes.
mayank-k1
Spring MVC based Blog Management System allowing users to create and retrieve blog posts with layered architecture using Controller, Service, DAO, and JPA.
AyKrimino
A donation management system built with Java Swing and AWT for the UI, MySQL for the database, and a well-structured architecture (Models, DAO, Services, GUI).
shreenathshewale
Developed a Spring Boot-based microservice to validate payment requests within a distributed architecture. • Implemented a controller-service-DAO layered architecture with Spring JDBC for MySQL integration and used HMAC SHA-256 encryption for secure request validation. • Integrated Spring Security for authentication.
B-TechCode
A Product CRUD web application built using Spring MVC. It supports creating, reading, updating, and deleting products with a layered architecture using controllers, services, DAO, JSP views, Maven, and deployment on Apache Tomcat.
PranitaShinde1233
This project follows the Controller–Service–DAO layered architecture, ensuring clean code and easy maintenance. It allows users to register through a simple frontend form, and securely stores their details in a MySQL database.
mainSiddharthhoon
A Java desktop application for managing personal finances, including transactions, budgets, and financial reports. Built with a layered architecture using models, DAO, services, and a Swing-based GUI, with file-based data persistence for lightweight personal finance tracking.
Enterprise-grade banking system built with Java, Spring Boot, and MySQL featuring secure transactions, multi-account management, ATM operations, and RESTful APIs. Implements MVC architecture, design patterns (Singleton, Factory, DAO), and BCrypt authentication for production-ready financial services.
Ravi-kish
Student Management System – A full-stack Java web application built with Spring MVC, JSP, JDBC, and MySQL. It allows users to manage student records with CRUD operations (Create, Read, Update, Delete) through a layered MVC architecture (Controller, Service, DAO).
SamK1828
A full-stack Student Management System built with React, Tailwind CSS, and Spring Boot. Features include student CRUD operations, search, responsive UI, and modular structure with DAO, Service, and Controller layers. Designed for clean architecture and seamless frontend-backend integration.
🛒 A production-ready JavaFX e-commerce application with SQLite database. Features secure authentication (SHA-256), role-based access control, shopping cart, and comprehensive admin panel. Built with MVC architecture, service layer, and DAO pattern. Includes logging, input validation, and automated database initialization.
hardy0423
Product Management System is a complete J2EE web application designed to manage products through a clean layered architecture. It implements essential features such as CRUD operations, data validation, stock management, and reporting, while following industry best practices (DAO Pattern, MVC, Service Layer).
AadiPore
Campus Recruit API streamlines the recruitment process by managing students, job postings, applications, interviews, users, and reports. Built with Spring Boot, Hibernate, and MySQL, it follows a layered architecture (Controller, Service, DAO). Features include CRUD operations, role-based access, and detailed reporting, tested using Postman.
Rohan444k
Developed a Spring Boot REST API to automate and manage student attendance tracking in educational institutions. Implemented modules for Students, Subjects, Faculty, Attendance, and Users with full CRUD operations, secure authentication, and validation. The project follows a layered architecture (Controller, Service, DAO) ensuring scalability.
TechyKiran
A simple Console-Based Student Management System built using Java, JDBC, and MySQL. This project allows you to add, view, update, and delete student records with proper database connectivity and error handling. Designed using DAO & Service layer architecture for clean code and easy maintainability.
juniorjavadeveloper-pl
User enters/requests Location e.g. Warsaw, app retreives Weather Data from external API e.g. OpenWeatherApi and stores Location request along with collected weather data in database - technologies: Java, CLI, Hibernate, OkHttp3, JUnit 5, H2Database; architecture, three layers Java Monolith: Controller, Service, Mapper, Dao.
artiordex
A web-based animal hospital management system built with Java 17, JSP, and Spring Legacy using MVC2 architecture, featuring a layered structure with Controller, Service, and DAO, Oracle Database for persistence, Bootstrap for responsive UI, and a focus on understanding Java web design patterns, Spring components, and modular development.
SamK1828
📒 Phonebook Web Application built using Java Servlets and JSP. It allows users to add, view, edit, and delete contacts with a clean UI. Follows MVC architecture using DAO and Service layers for modular backend logic. MySQL is used for data persistence. Simple, effective, and easy to use.
sandeepbegudem
This backend application is developed using Spring Boot and Java. Overall architecture of the project contains service, controller web, entity, dao layers with the exceptional handling. Web layer exposes few Rest Endpoints and Steriotype, JPA annotations were implemented with the Spring Data JPA Repository that maps the objects and the tables.
medasumumbs
Pet project that represents a model of a real library. This project contains the most popular web-application operations - CRUD, interaction with database using hibernate+postgresql, pagination, search by filters, ordering, simple GUI made with HTML & Thymeleaf. The spring application uses MVC architecture pattern, service layer, DAO and repo's
Sarthak248
A spring boot project that serves as a robust Enterprise Management System, providing RESTful APIs to perform CRUD operations. Built with ORM tools like Hibernate and JPA, used JWT and Auth 2.0 for authentication, JDBC connection with MySQL. The project thoroughly uses the Controller, Service, DAO and DTO architecture.
lucaslouca
Java maven project to illustrate a good practice spring service-dao architecture