Skip to content

alevp-dev/Shopping-Cart-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
    git clone https://github.com/your-username/SimpleCartJS.git
  2. Navigate to the project directory:
    cd Shopping-Cart-Simulation
  3. Install dependencies:
    npm install
  4. Run the application:
    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

About

Programming challenge

Topics

Resources

Stars

Watchers

Forks