Welcome to AMAZONE, a modern and feature-rich e-commerce web application built using Flask, MySQL, and PythonAnywhere for deployment.
This project simulates a full e-commerce experience: user registration, login, shopping cart, admin stock management, fake checkout, and transaction history – all with modern UI design inspired by Amazon.
- 🧑 User Registration & Login
- 🔐 Secure Password Storage
- 📦 Product Listings with Stock Control
- 🛒 AJAX-powered Add-to-Cart Modal
- 🔄 Dynamic Stock Update after Purchase
- 🧾 Order History per User
- 🧑💼 Admin Restock Portal
- 💳 Fake Payment Gateway UI
- 📃 Order Success Confirmation
- 🎨 Premium UI Styling (Inspired by Amazon.ca)
| Page | Description |
|---|---|
/ or /products |
Product catalog with stock, price, and add-to-cart button |
/cart |
Modern cart layout with item quantity updates |
/payment |
Fake credit card checkout page with address shown |
/order_success/<id> |
Thank you page with order number and continue shopping |
/transaction_history |
View all past orders with clear history option |
/admin/restock |
Admin restock all items |
/login & /register |
Auth pages with styled forms |
- Backend: Flask (Python)
- Database: MySQL (hosted on PythonAnywhere)
- Frontend: HTML, CSS (custom), JavaScript (AJAX for modal/cart)
- Deployment: PythonAnywhere
- Authentication: Session-based login
.
├── static/
│ ├── css/
│ ├── images/
│ └── scripts/
├── templates/
│ ├── base.html
│ ├── index.html
│ ├── cart.html
│ ├── payment.html
│ ├── login.html
│ ├── register.html
│ ├── order_success.html
│ └── transaction_history.html
├── app.py
├── README.md
└── .gitignore
Note: For local MySQL setup, credentials will differ.
-
Clone the repository:
git clone https://github.com/your-username/mystore.git cd mystore -
Create virtual environment & activate:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Update your MySQL DB credentials in
app.py -
Run the app:
flask run
- This is a simulation project. Payment is not real.
- All credit card info entered is discarded and not stored or processed.
- Passwords are securely hashed before storage.
- The app is not production-hardened. Do not deploy without security reviews.
Designed & developed by AOD, built for educational purposes.
Modern UI styled manually & inspired by Amazon.ca's interface.
This project is open source under the MIT License.
---