π¦ Serenity is a billing application built in Java. It provides a robust and easy-to-use platform for managing products, inventory, and billing operations.
- π Add New Products: Easily add new products with details such as name, brand, price, and quantity.
- π Update Products: Update product details including price, quantity, and name.
- ποΈ Delete Products: Remove products from the inventory.
- π View Inventory: List all products in a well-organized manner with detailed information.
- Java Development Kit (JDK) installed
- An IDE or text editor (e.g., IntelliJ IDEA, Eclipse, VS Code)
-
Clone the repository:
git clone https://github.com/danish-mar/Serenity.git
-
Open the project in your preferred IDE.
-
Compile and run the project.
Here's an example of how to use the ProductManager
class to manage products:
public class Main {
public static void main(String[] args) {
ProductManager manager = new ProductManager();
// Adding products
manager.addNewProduct("S22 Ultra", "Samsung", 799.4f, 5);
manager.addNewProduct("iPhone 13", "Apple", 999.99f, 8);
manager.addNewProduct("MacBook Pro", "Apple", 2399.99f, 3);
// List all products
manager.listAllProducts();
}
}
addNewProduct(String name, String brand, float price, int availableQuantity)
deleteProduct(int id)
updateProduct(int id, Product updatedProduct, Product oldProduct)
updateStock(int id, int newStock)
listAllProducts()
// Adding products
manager.addNewProduct("Pixel 6", "Google", 599.99f, 10);
manager.addNewProduct("ThinkPad X1", "Lenovo", 1299.99f, 4);
manager.addNewProduct("AirPods Pro", "Apple", 249.99f, 20);
// Listing all products
manager.listAllProducts();
Contributions are welcome! Please fork this repository and submit pull requests.
This project is licensed under the Apache License.
For any inquiries or issues, please open an issue on this repository or contact the author.
π¨βπ» Author: danish-mar