English | Italiano
Online Cooking Course Management System
University project for the Object Orientation and Databases courses
University of Naples Federico II — Group OOBD7
UninaFoodLab is a desktop application for managing a cooking course platform. It was developed as a project for the "Object Orientation" and "Databases" courses (Group OOBD7).
The system supports two main user types, Chefs and Participants. Chefs can create and manage courses, recipes and sessions (both practical and online), while Participants can enroll in courses, browse recipes and take part in sessions.
- User authentication: secure registration and login for Chefs and Participants.
- Course management: create, edit and browse courses with search filters.
- Recipe management: Chefs create and manage their own recipes, specifying ingredients and steps.
- Session management: creation of practical and online sessions linked to courses.
- User profile: view and edit personal information.
- Reporting: reporting features for administrators.
The project follows a multi-layer architecture to separate responsibilities:
- Boundary (package
UninaFoodLab.Boundary): all user interface classes (GUI) built with Java Swing. - Controller (package
UninaFoodLab.Controller): application logic and mediator between the user interface and data access. - DTO (Data Transfer Object) (package
UninaFoodLab.DTO): POJOs modeling the domain entities. - DAO (Data Access Object) (package
UninaFoodLab.DAO): interfaces and concrete implementations for data access and persistence on PostgreSQL.
- Language: Java 24
- GUI: Java Swing, SwingX, FlatLaf, Ikonli (icons), MigLayout, LGoodDatePicker
- Charts: JFreeChart
- Security: jBCrypt (password hashing)
- Database: PostgreSQL (JDBC driver)
- Build: Apache Maven
- Make sure a PostgreSQL server is running.
- Create a new database (e.g.
uninafoodlab). - Run the SQL scripts in
Database/sql/in the correct order:00_Create.sql(creates tables and types)01_Trigger_Funzioni_Procedure.sql(database business logic)02_Popolamento.sql(sample data)
Connection settings are read from src/main/resources/db.properties, which is not versioned. Copy the example file and fill in your values:
cd "Object Orientation/uninafoodlab/src/main/resources"
cp db.properties.example db.propertiesdb.url=jdbc:postgresql://localhost:5432/uninafoodlab
db.user=postgres
db.password=your-passwordOpen Object Orientation/uninafoodlab/ in an IDE with Maven support (IntelliJ IDEA, Eclipse) and run the main class (UninaFoodLab.Controller.Controller).
From the terminal:
cd "Object Orientation/uninafoodlab"
mvn clean install
mvn exec:java -Dexec.mainClass=UninaFoodLab.Controller.ControllerUninaFoodLab/
├── Database/
│ ├── sql/ # DDL, triggers/procedures and sample data
│ ├── ModelloLogico.md # logical data model
│ ├── UninaFoodLab_*.drawio # ER and UML diagrams
│ └── Documentazione-*.pdf # database documentation
├── Object Orientation/
│ ├── Diagrammi/ # class diagram
│ ├── Documentazione-*.pdf # project documentation
│ └── uninafoodlab/
│ ├── pom.xml
│ └── src/main/
│ ├── java/UninaFoodLab/
│ │ ├── Boundary/ # Swing GUI classes
│ │ ├── Controller/ # application logic
│ │ ├── DTO/ # domain objects
│ │ └── DAO/ # data access (+ Postgres implementations)
│ └── resources/ # images, sample files, db.properties.example
└── README.md
db.propertiesis required at runtime and is git-ignored; usedb.properties.exampleas a template.- The
exec-maven-pluginis not declared inpom.xml, so the main class is passed explicitly with-Dexec.mainClass.
