Skip to content

About

Desktop app to manage an online cooking school: chefs create courses, recipes and sessions, participants enroll and follow them. Java Swing client with a layered Boundary-Controller-DTO-DAO architecture on PostgreSQL.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

214 Commits

Folders and files

Repository files navigation

English | Italiano

UninaFoodLab Logo

UninaFoodLab

Online Cooking Course Management System
University project for the Object Orientation and Databases courses
University of Naples Federico II — Group OOBD7

Description

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.

Features

  • 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.

Architecture

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.

Tech Stack

  • 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

Getting Started

1. Database

  1. Make sure a PostgreSQL server is running.
  2. Create a new database (e.g. uninafoodlab).
  3. Run the SQL scripts in Database/sql/ in the correct order:
    1. 00_Create.sql (creates tables and types)
    2. 01_Trigger_Funzioni_Procedure.sql (database business logic)
    3. 02_Popolamento.sql (sample data)

2. Database credentials

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.properties
db.url=jdbc:postgresql://localhost:5432/uninafoodlab
db.user=postgres
db.password=your-password

3. Run the application

Open 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.Controller

Project Structure

UninaFoodLab/
├── 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

Notes

  • db.properties is required at runtime and is git-ignored; use db.properties.example as a template.
  • The exec-maven-plugin is not declared in pom.xml, so the main class is passed explicitly with -Dexec.mainClass.

About

Desktop app to manage an online cooking school: chefs create courses, recipes and sessions, participants enroll and follow them. Java Swing client with a layered Boundary-Controller-DTO-DAO architecture on PostgreSQL.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages