Skip to content

TeamProject210/Store-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ Supermarket Management System

A full-stack retail management platform built to streamline supermarket operations including inventory tracking, billing, employee management, analytics, and customer handling.

The system is designed for scalability and real-world retail workflows, providing role-based access, real-time inventory monitoring, sales reporting, and an integrated point-of-sale experience.


πŸ“Œ Overview

Managing a supermarket involves handling inventory, billing, staff operations, suppliers, and customer records simultaneously. This project centralizes those operations into a single platform with a modern frontend and secure backend architecture.

The application focuses on:

  • Efficient inventory and sales management
  • Secure authentication and role-based access
  • Real-time operational visibility
  • Scalable backend architecture
  • Clean and responsive user experience

✨ Features

πŸ” Authentication & Security

  • JWT-based authentication
  • Role-based access control (Admin, Manager, Cashier, Inventory Staff)
  • Secure password hashing
  • Session management and protected routes

πŸ“¦ Inventory Management

  • Real-time stock tracking
  • Product categorization
  • Low-stock alerts
  • Batch and expiry management
  • Supplier management
  • Barcode and QR support

πŸ’³ Point of Sale (POS)

  • Fast checkout workflow
  • Multiple payment methods
  • Discount and promotion handling
  • Receipt generation
  • Refund and return processing
  • Transaction history

πŸ“Š Dashboard & Analytics

  • Daily, weekly, and monthly sales reports
  • Revenue and profit analysis
  • Best-selling product tracking
  • Inventory turnover insights
  • Customer purchase analytics
  • Export reports in CSV, Excel, and PDF formats

πŸͺ Store Management

  • Employee management
  • Shift and scheduling support
  • Notification system
  • Interactive store layout visualization
  • Product location tracking

πŸ‘₯ Customer Features

  • Loyalty program support
  • Purchase history
  • Digital receipts
  • Feedback system

πŸ› οΈ Tech Stack

Frontend

  • React 18
  • Vite
  • React Router
  • Tailwind CSS
  • Axios
  • Framer Motion

Backend

  • Django
  • Django REST Framework
  • PyJWT
  • Djongo

Database

  • MongoDB

DevOps & Tools

  • Git
  • Docker (Optional)

πŸ—οΈ System Architecture

Client (React + Tailwind)
        β”‚
        β–Ό
REST API Layer (Django REST Framework)
        β”‚
        β–Ό
Business Logic & Services
        β”‚
        β–Ό
MongoDB Database

The frontend communicates with the backend using REST APIs. Authentication is handled using JWT tokens, while MongoDB stores application data including users, products, sales records, and inventory information.


πŸš€ Installation

Prerequisites

Make sure the following are installed on your system:

  • Node.js (v18+)
  • Python (v3.10+)
  • MongoDB
  • Git

πŸ“₯ Clone the Repository

git clone https://github.com/your-username/supermarket-management-system.git

cd supermarket-management-system

βš™οΈ Backend Setup

cd backend

python -m venv venv

Activate Virtual Environment

Windows

venv\Scripts\activate

Linux/macOS

source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Configure Environment Variables

Create a .env file inside the backend directory:

SECRET_KEY=your_secret_key
MONGO_URI=mongodb://localhost:27017/supermarket_db
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
CORS_ALLOWED_ORIGINS=http://localhost:5173

Run the Server

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

Backend will run at:

http://127.0.0.1:8000

🎨 Frontend Setup

Open another terminal:

cd frontend

npm install

npm run dev

Frontend will run at:

http://localhost:5173

πŸ“‚ Project Structure

supermarket-management-system/

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ manage.py
β”‚   └── requirements.txt
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ context/
β”‚   β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── utils/
β”‚   β”‚
β”‚   β”œβ”€β”€ package.json
β”‚   └── vite.config.js
β”‚
β”œβ”€β”€ docs/
β”œβ”€β”€ README.md
└── LICENSE

πŸ“š API Endpoints

Authentication

Method Endpoint Description
POST /api/auth/register/ Register user
POST /api/auth/login/ Login user
POST /api/auth/logout/ Logout user
GET /api/auth/user/ Current authenticated user

Products

Method Endpoint Description
GET /api/products/ Get all products
POST /api/products/ Add product
GET /api/products/{id}/ Product details
PUT /api/products/{id}/ Update product
DELETE /api/products/{id}/ Delete product

Sales

Method Endpoint Description
GET /api/sales/ Get sales
POST /api/sales/ Create sale
GET /api/sales/{id}/ Sale details
GET /api/sales/reports/ Sales reports

🀝 Contributing

Contributions are welcome.

To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push the branch
  5. Open a pull request

Please ensure:

  • Code follows the existing project structure
  • Commit messages are meaningful
  • New features include proper testing
  • Documentation is updated when necessary

Because eventually every project becomes β€œtemporary code” running something important. Modern civilization is held together by APIs and developers pretending the production server is fine.


πŸ‘¨β€πŸ’» Team

Name Role
Amit Kumar Backend Development
Rohit Pratap Singh Frontend Development
Ch. Bhargav Database Management
Bhaskar Akshay Sriram Frontend Development

πŸ“„ License

This project is licensed under the MIT License.


πŸ“ž Support

For issues, bug reports, or feature requests:

  • Open an issue on GitHub
  • Review the documentation
  • Contact the development team

πŸ™Œ Acknowledgements

  • Open-source contributors and libraries
  • React, Django, and MongoDB communities
  • Developers who debug production issues at 2 AM while claiming everything is β€œstable”

⭐ Star the Repository

If you found this project useful, consider giving it a star on GitHub.

Tiny digital approval badges. The closest thing developers get to emotional compensation.

Releases

No releases published

Packages

 
 
 

Contributors