Skip to content

VaibhavAPatil/ClothingStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛍️ Clothing Store Web Application

This project is a Clothing Store Web Application developed using Python Flask and MySQL. It allows users to browse products, register/login, place orders, and complete checkout. An Admin panel is also provided to manage users, products, and orders.

This project is developed for academic (MCA) purposes.


🚀 Technologies Used

  • Backend: Python (Flask)
  • Frontend: HTML, CSS, JavaScript, Bootstrap
  • Database: MySQL
  • Python Library: flask-mysqldb
  • Server: Flask Development Server

📁 Project Structure

ClothingStore/
│
├── app.py                    # Main Flask application
├── clothingstore.sql         # MySQL database file
├── static/
│   ├── ProductsImage/        # Uploaded product images
│   ├── style.css
│   ├── script.js
│   └── bootstrap files
│
├── templates/
│   ├── index.html
│   ├── login.html
│   ├── signup.html
│   ├── product.html
│   ├── checkout.html
│   ├── admin_login.html
│   ├── admin_dashboard.html
│   └── other HTML files
│
├── .gitignore
└── Readme.md

⚙️ Installation & Setup Guide

Follow the steps below to run the project on your local system.


✅ Step 1: Install Required Software

Make sure you have installed:

  • Python 3.9 or above
  • MySQL Server
  • Git
  • VS Code / Any Code Editor

Check Python version:

python --version

✅ Step 2: Clone the Repository

git clone https://github.com/VaibhavAPatil/ClothingStore.git
cd ClothingStore

✅ Step 3: Create Virtual Environment (Recommended)

python -m venv env

Activate the virtual environment:

Windows

env\Scripts\activate

Linux / macOS

source env/bin/activate

✅ Step 4: Install Required Python Packages

Your project uses flask and flask-mysqldb.

pip install flask
pip install flask-mysqldb

✅ Step 5: Setup MySQL Database

  1. Open XAMPP MySQL or MySQL Command Line or MySQL Workbench
  2. Create database:
CREATE DATABASE clothingstore;
  1. Import the database file:
USE clothingstore;
SOURCE path_to_project/clothingstore.sql;

Example:

SOURCE E:/Programs/MCA I Project/ClothingStore/clothingstore.sql;

✅ Step 6: Configure Database in app.py

Open app.py and verify database configuration:

app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = ''
app.config['MYSQL_DB'] = 'clothingstore'

👉 Update username/password if your MySQL configuration is different.


✅ Step 7: Run the Application

python app.py

You should see:

Running on http://127.0.0.1:5000/

✅ Step 8: Open in Browser

Open your browser and visit:

http://127.0.0.1:5000/

🔐 Login Details

User

  • New users can register using the signup page
  • Login using registered email and password

Admin

  • Admin login page:
http://127.0.0.1:5000/admin/login
  • Admin credentials are stored in the admin table in the database

📌 Features

  • User Registration & Login
  • Product Listing
  • Product Details Page
  • Checkout & Order Placement
  • Admin Dashboard
  • Product Management
  • Image Upload for Products
  • Order Management

⚠️ Important Notes

  • Do NOT upload env/ or __pycache__/ to GitHub

  • Make sure MySQL service is running

  • Uploaded images are stored in:

    static/ProductsImage/
    
  • This project runs in debug mode (development only)


👨‍🎓 Developed By

Vaibhav A. Patil MCA – Semester I Clothing Store Web Application


📚 Academic Use

This project is created for learning and academic submission purposes only.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors