Programación I
  • Java 94.7%
  • Makefile 5.3%
Find a file
2024-11-04 13:07:51 +01:00
docs fix(docs): update UML diagram and XMI file 2024-11-04 05:14:06 +01:00
src feat: add Javadoc documentation for ClothingItem 2024-11-04 13:07:51 +01:00
.gitignore fix: correct typo in gitignore 2024-11-02 06:41:55 +01:00
LICENSE feat: initial commit 2024-10-29 03:01:29 +01:00
Makefile fix: update javadoc rule in Makefile to remove warnings and remove useless charset option 2024-11-03 04:45:08 +01:00
manifest.txt feat: add manifest file 2024-11-02 00:51:35 +01:00
README.md refactor: simplify commands for better ux 2024-11-04 12:22:08 +01:00

Proyecto 1 - Programación I

The goal of this project was to implement a catalog program for items in Java, which can be used through a CLI (command-line interface).

Specifically, this catalog has been made for clothing items.

Usage

First, compile the program with the command :

make

Then, launch the generated executable with the following command :

./a.out

You can also generate and run a .jar file directly instead, with the command make runjar. You can find other available Makefile commands here


This will automatically launch the CLI. Here's how to use it :

./a.out
Products loaded successfully

> <OPTION>

OPTIONS:
    add       : create and add a product (asks for item type, color, size...etc)
    delete    : delete a product (asks for the product ID)
    list      : list all the products
    exit      : exit the CLI

Data Persistence

The program uses object persistence using Java's ObjectOutputStreamand ObjectInputStream, automatically saving created products to a file ("data.dat") when exiting. It also loads data from ("data.dat") file if it exists upon launch.

UML Diagram


Class Diagram

You can also find this diagram in XMI format here

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.