An open API service indexing awesome lists of open source software.

https://github.com/alevp-dev/shopping-cart-simulation


https://github.com/alevp-dev/shopping-cart-simulation

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Shopping-Cart-Simulation
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.

# Features
- 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

# Installation
Prerequisites
- Node.js installed

# Setup
1. Clone the repository:
```bash
git clone https://github.com/your-username/SimpleCartJS.git
```
2. Navigate to the project directory:
```bash
cd Shopping-Cart-Simulation
```
3. Install dependencies:
```bash
npm install
```
4. Run the application:
```bash
node src/index.js
```

# Usage Guide
1. Run the program and enter your name and age.
2. 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.
3. The system ensures stock validation before processing transactions.

# Contributions
Contributions, issues, and feature requests are welcome! Feel free to fork this repository and submit a pull request.

---
Developed with ❤️ by **Alejandra Villa Posada**