Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

🏒 ShopyApp

A Real-World Python E-Commerce Application

By reading and running code.py, you learn how Python is actually used at companies β€” not just syntax, but structure, design decisions, and professional patterns.


πŸ“Œ What is ShopyApp?

ShopyApp is a single-file Python application (code.py) that simulates how real companies build e-commerce backends β€” similar to Amazon, Flipkart, or Swiggy. Every Python concept is taught inside a working product with real features and real-world architecture used by professional developers.


✨ Features

Feature Real-World Parallel Python Concepts Used
πŸ‘€ User Auth Flipkart / Swiggy login Classes, hashing, regex
πŸ›οΈ Product Catalogue Amazon search & filter List comprehensions, sorting
πŸ›’ Shopping Cart Myntra / Meesho cart Dataclasses, properties
πŸ“¦ Order Management Zomato order flow Enums, UUID, validation
πŸ“Š Admin Dashboard Internal ops dashboards @admin_required decorator
πŸ“§ Notifications SendGrid / Twilio alerts Service layer pattern
πŸ—„οΈ Database Layer PostgreSQL-style ORM SQL, context managers
πŸ” Security OWASP best practices SHA-256 hashing, regex
πŸ“ Logging Production monitoring logging module, file handlers
🌐 App Structure Flask / Django internals Sessions, service pattern

πŸš€ Quick Start

Prerequisites

  • Python 3.8 or higher
  • No third-party libraries required β€” only the Python standard library!

Run the App

# Run the application
python code.py

# Two files will be created automatically:
#   shopflow.db   β€” SQLite database with all your data
#   shopflow.log  β€” Full audit trail of every event

Expected Output

When you run code.py, it walks through all 6 features sequentially:

  • πŸ“§ Email notifications printed to the console
  • πŸ“‹ Product table with names, prices, stock, and ratings
  • πŸ›’ Cart contents with subtotals and total
  • πŸŽ‰ Order confirmation with a unique order ID
  • πŸ“Š Admin sales report with a terminal bar chart
  • πŸ” Security test showing @admin_required blocking access

πŸ—‚οΈ Project Structure

code.py is intentionally one file so you can read it top-to-bottom:

About

A Real-World Python E-Commerce Application

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages