Full-Stack Marketplace
Smart Bargain logo

Smart Bargain

Shop Smart. Bargain Better.

Smart Bargain is a full-stack grocery marketplace platform that enables buyers and sellers to negotiate product prices, manage inventory, process orders, exchange messages, and track negotiations in real time through a secure role-based web application.

2
Design Patterns
10+
Core Modules
RBAC
Security Model
Smart Bargain

Problem

Traditional online grocery marketplaces use fixed pricing, removing the human element of negotiation that both buyers and sellers value. Small grocery sellers lacked an affordable platform to list products, manage inventory, and negotiate deals without steep marketplace fees.

Solution

Smart Bargain reintroduces negotiation into grocery e-commerce. Buyers browse products and categories, submit offers, sellers counter, and both track the negotiation thread in real time. A secure role-based system separates buyer and seller capabilities while a clean dashboard centralises listings, inventory, orders and messages.

Architecture

Built on Django’s MVT architecture with a SQLite datastore. The Factory Pattern generates different product/listing types cleanly, while a Singleton manages shared configuration and the negotiation session manager. Views are protected with role-based access control and the app is deployed on PythonAnywhere.

Key Features

Role-based authentication for buyers and sellers
Product listings organised by grocery categories
Real-time negotiation engine with offer / counter-offer threads
Inventory & shopping cart management
Order tracking and status workflow
In-app messaging and seller analytics dashboard

Challenges

Designing a negotiation state machine that stayed consistent across concurrent offers, and enforcing strict role boundaries so buyers and sellers only ever saw the right data and actions.

Lessons Learned

Applying design patterns (Factory & Singleton) deliberately kept the codebase extensible and testable. I learned how much clean domain modelling pays off when features stack on top of each other.

Future Improvements

  • Migrate to PostgreSQL and add Redis-backed real-time websockets
  • Introduce payment gateway integration
  • AI-assisted price suggestions based on market data
Shiela Umali — Software Engineer · Data & AI · Full Stack Developer