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.
- Backend: Python (Flask)
- Frontend: HTML, CSS, JavaScript, Bootstrap
- Database: MySQL
- Python Library:
flask-mysqldb - Server: Flask Development Server
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
Follow the steps below to run the project on your local system.
Make sure you have installed:
- Python 3.9 or above
- MySQL Server
- Git
- VS Code / Any Code Editor
Check Python version:
python --versiongit clone https://github.com/VaibhavAPatil/ClothingStore.git
cd ClothingStorepython -m venv envActivate the virtual environment:
env\Scripts\activatesource env/bin/activateYour project uses flask and flask-mysqldb.
pip install flask
pip install flask-mysqldb- Open XAMPP MySQL or MySQL Command Line or MySQL Workbench
- Create database:
CREATE DATABASE clothingstore;- Import the database file:
USE clothingstore;
SOURCE path_to_project/clothingstore.sql;Example:
SOURCE E:/Programs/MCA I Project/ClothingStore/clothingstore.sql;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.
python app.pyYou should see:
Running on http://127.0.0.1:5000/
Open your browser and visit:
http://127.0.0.1:5000/
- New users can register using the signup page
- Login using registered email and password
- Admin login page:
http://127.0.0.1:5000/admin/login
- Admin credentials are stored in the
admintable in the database
- User Registration & Login
- Product Listing
- Product Details Page
- Checkout & Order Placement
- Admin Dashboard
- Product Management
- Image Upload for Products
- Order Management
-
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)
Vaibhav A. Patil MCA – Semester I Clothing Store Web Application
This project is created for learning and academic submission purposes only.