Super simple Flask + SQLite demo (plaintext passwords for class only). Works great on macOS or Windows + VS Code.
On Windows, launching this project in VS Code. Here’s what you do step-by-step:
- Download the project.
- In VS Code, go to File → Open Folder and select the
flask_ecommerce_simplefolder.
- In VS Code, press Ctrl+` (backtick) or go to View → Terminal.
Run these commands in the VS Code terminal:
# Create a virtual environment
python -m venv .venv
# Activate the virtual environment (PowerShell syntax)
.venv\Scripts\activateIf you’re using Command Prompt instead of PowerShell, the activation command is:
.venv\Scripts\activate.bat
pip install -r requirements.txtpython app.pyOnce it starts, it will say something like:
* Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
Open http://127.0.0.1:5000 in your web browser.
✅ You should now see your Mini Shop app running.
- Customer signup works.
- Guest checkout works.
- Staff login:
staff / staff→ gives access to Fulfill page.
# 1) Open VS Code, then open this folder.
# 2) In VS Code terminal:
python3 -m venv .venv
source ./.venv/bin/activate # macOS
pip install -r requirements.txt
python app.py
# open http://127.0.0.1:5000- Staff demo user:
staff / staff - If
ecommerce.dbis missing, it will be created with sample data on first run.
- Search products
- Guest checkout (no account)
- Sign up / Login (plaintext passwords — classroom only)
- Update account (name/email/address)
- Cart + Checkout creates orders
- Staff portal to advance order status: Open → Ready → Shipped → Picked-up