https://github.com/alevp-dev/shopping-cart-simulation
https://github.com/alevp-dev/shopping-cart-simulation
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/alevp-dev/shopping-cart-simulation
- Owner: alevp-dev
- Created: 2025-03-11T15:36:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T16:04:09.000Z (over 1 year ago)
- Last Synced: 2025-03-11T16:37:22.616Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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**