Coupon Store

The Coupon Store is a web-based e-commerce application built with Django that allows products to have unique, random coupon codes associated with them. Users can browse products, view coupon deals, and add products to their cart. Coupons are time-bound, making it a realistic solution for online promotions and discounts. The system is designed to be scalable, easy to maintain, and fully responsive using Bootstrap 5.
This project demonstrates CRUD operations, dynamic coupon generation, cart functionality, and front-end integration using modern UI practices.

Coupon Store
Coupon Store
Coupon Store
Coupon Store
Coupon Store

Product Management

    Add, update, and delete products through the Django admin panel.

    Each product can have an image and price.

    Random Coupon Generation

      Products can have unique random coupon codes generated.

      Coupons are valid for a fixed number of days (configurable).

      Coupon Validity

      Only valid coupons are displayed to the user.

      Expired coupons are automatically hidden.

      Cart Functionality

      Add products to the cart with quantity selection.

      Subtotal and total calculation for cart items.

      Responsive Design

      Clean and modern interface using Bootstrap 5.

      Works well on desktop, tablet, and mobile devices.

      Admin Panel Integration

      Easy management of products and coupons.

      Admin can generate coupons with a single click.nt: pre-school website template, free landing page template, bootstrap template for school, responsive HTML project.

      TechnologyPurposePython 3.xBackend programming languageDjango 4.xWeb framework for building the backendSQLite / PostgreSQLDatabase for storing products, coupons, and cart items Bootstrap 5 Frontend CSS framework for responsive designHTML / CSS / JSFrontend structure and interactivityUUID / Random ModuleRandom coupon code generationDjango TemplatesRendering dynamic content on frontend

      Functionality  

      1. User Side Functionality

      1. Product Browsing
        • View all available products in a clean, responsive grid layout.
        • Each product displays: name, price, image, and available coupon (if valid).
      2. Coupon Visibility
        • Only valid coupons are shown on products.
        • Expired coupons are automatically hidden from the product page.
      3. Add to Cart
        • Users can add products to the cart with a specific quantity.
        • Cart displays product name, quantity, subtotal, and total amount.
      4. Coupon Application in Cart
        • Users can enter coupon codes (from product or global coupon) to apply discounts.
        • The system validates coupon and calculates discounted total (percent/fixed).
      5. Responsive Design
        • Mobile-friendly layout for browsing products and managing the cart.
        • Interactive buttons and badges for coupons.

      2. Admin Side Functionality

      1. Product Management
        • Add, edit, and delete products.
        • Upload images for each product.
      2. Coupon Generation
        • Generate random coupons for each product.
        • Set expiry automatically (e.g., 5 days from generation).
      3. Coupon Management
        • View all coupons with expiry and status.
        • Admin can mark coupon as active/inactive.
      4. Cart & Order Management (Optional)
        • Admin can see cart items or orders (if extended to include checkout).
      5. Django Admin Integration
        • Easy-to-use dashboard to manage products and coupons efficiently.
        • List display, search, and actions for coupon generation.
      Why Use This Project ?

      E-commerce Ready: Demonstrates a mini e-commerce workflow with cart and products.

      Promotions & Discounts: Ideal for learning and implementing coupon-based promotions.

      Django Best Practices: Shows clean model design, reusable methods, and template rendering.

      Portfolio-Friendly: Fully functional project suitable for showcasing in resumes or portfolios.

      Customizable: Easily extendable for more features like user login, checkout, or global coupons.