A simple command-line shopping cart system built with Node.js. Users can browse categories, add products to their cart, edit quantities, remove items, and finalize purchases. The system manages inventory and stores purchase history.
- User registration (name & age validation)
- Product browsing by category
- Add, edit, and remove items from the cart
- Stock validation
- Purchase history tracking
- JSON-based data storage
Prerequisites
- Node.js installed
- Clone the repository:
git clone https://github.com/your-username/SimpleCartJS.git
- Navigate to the project directory:
cd Shopping-Cart-Simulation
- Install dependencies:
npm install
- Run the application:
node src/index.js
- Run the program and enter your name and age.
- Choose an option from the main menu:
- Browse categories and select products.
- View, edit, or remove items from the cart.
- Finalize purchase to save it in the history.
- The system ensures stock validation before processing transactions.
Contributions, issues, and feature requests are welcome! Feel free to fork this repository and submit a pull request.
Developed with ❤️ by Alejandra Villa Posada