Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

SecureShop πŸ›’

SecureShop is a console-based C++ shopping cart system developed as a semester project. It allows users to register, log in, browse different categories of items (Food, Clothes, and Supplies), add/remove items to/from the cart, and checkout securely. The project also demonstrates file handling, object-oriented programming, and basic data persistence in C++.


πŸ“Œ Features

  • βœ… User Authentication (Sign Up / Log In)
  • πŸ› Category-based Shopping (Food, Clothes, Supplies)
  • 🧾 Cart Management
    • Add items
    • Remove items
    • View total cost
  • πŸ’Ύ File Handling
    • Store user data and cart data in files
  • 🧠 Object-Oriented Design
    • Use of classes like User, Item, Cart, etc.
  • πŸ” Basic input validation and secure data flow

πŸ—‚ File Structure

SecureShop/ β”œβ”€β”€ main.cpp β”œβ”€β”€ user.cpp β”œβ”€β”€ user.h β”œβ”€β”€ item.cpp β”œβ”€β”€ item.h β”œβ”€β”€ cart.cpp β”œβ”€β”€ cart.h β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ users.txt β”‚ β”œβ”€β”€ items.txt β”‚ └── transactions.txt └── README.md


πŸ›  Tech Stack

  • Language: C++
  • Concepts Used:
    • Classes & Objects
    • File I/O
    • Inheritance & Polymorphism (optional)
    • Arrays and basic string manipulation

πŸ”§ How to Run

  1. Clone the repository:
    git clone https://github.com/yourusername/SecureShop.git
    Compile the code:

g++ main.cpp user.cpp item.cpp cart.cpp -o secureshop Run the executable:

./secureshop Make sure you have a data/ directory with required .txt files before running.

About

**SecureShop** is a C++ offline e-commerce simulation for cybersecurity students. It features user roles (Customer, Employee, Admin), secure login, file handling, inventory management, support handling, and role-based access control, emphasizing key programming and security concepts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors