Skip to content

Sayedcodes/Shoping_Cart_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛒 Shopping Cart System

A simple and interactive shopping cart application built with Python. This project includes both a command-line interface and a web-based UI using Streamlit.

🌐 Live Demo

Try the app live: Shopping Cart Demo

📋 Features

  • Add items to your cart with custom quantities
  • Update quantities of existing products
  • Remove items from the cart
  • View cart contents at any time
  • Checkout functionality to complete your purchase
  • Reset cart option to start fresh

🚀 Getting Started

Prerequisites

  • Python 3.7 or higher
  • pip (Python package installer)

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/shopping-cart-system.git
cd shopping-cart-system
  1. Install the required dependencies:
pip install -r reqirements.txt

💻 Usage

Option 1: Command-Line Version

Run the terminal-based cart system:

python cart_system.py

Navigate through the menu by entering numbers 1-5:

  • 1 - Add item to cart
  • 2 - Update item in cart
  • 3 - Remove item from cart
  • 4 - View cart
  • 5 - Buy and Exit

Option 2: Web Interface (Streamlit)

Launch the interactive web application:

streamlit run cart_app.py

The app will open in your default browser. Use the expandable sections to:

  • ➕ Add products
  • ✏️ Update quantities
  • ❌ Remove items
  • 🛒 Checkout when ready

📁 Project Structure

shopping-cart-system/
│
├── cart_system.py      # Command-line cart application
├── cart_app.py         # Streamlit web interface
├── reqirements.txt     # Project dependencies
└── README.md           # Project documentation

🛠️ Technologies Used

  • Python - Core programming language
  • Streamlit - Web interface framework
  • Session State - For maintaining cart data

📸 Screenshots

Add screenshots of your Streamlit app here

🤝 Contributing

Contributions are welcome! Feel free to:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is open source and available under the MIT License.

👤 Author

Sayed Hamza

⭐ Show your support

Give a ⭐️ if you like this project!


Made by Sayed Hamza❤️

About

A simple and interactive shopping cart system built with Python and Streamlit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages