Skip to content
jjohnnystwsssPublic

About

A minimal storefront demo website

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Mini Shop MVP

一個小型電商網站 MVP 專案,包含前台商店、購物車、結帳流程,以及最小可用的後台商品 / 訂單管理。

Features

  • 前台商品列表與商品詳情頁
  • 購物車與跨頁購物狀態
  • 結帳表單與訂單建立
  • SQLite 商品與訂單資料儲存
  • Python API 伺服器
  • 後台商品管理頁
  • 後台訂單管理頁

Tech Stack

  • HTML / CSS / JavaScript
  • Python 3
  • SQLite

Run Locally

在專案目錄執行:

python3 server.py --port 54321

啟動後可打開:

  • Frontend: http://127.0.0.1:54321/index.html?v=20260402mvp1
  • Cart: http://127.0.0.1:54321/cart.html?v=20260402mvp1
  • Checkout: http://127.0.0.1:54321/checkout.html?v=20260402mvp1
  • Admin Products: http://127.0.0.1:54321/admin-products.html?v=20260402mvp
  • Admin Orders: http://127.0.0.1:54321/admin-orders.html?v=20260402mvp

Project Structure

  • server.py: 提供靜態頁面與 API,並初始化 SQLite
  • store.js: 前台共用資料層、購物車與 API 溝通
  • index.html: 首頁與商品列表
  • product.html: 商品詳情頁
  • cart.html: 購物車頁
  • checkout.html: 結帳頁
  • admin-products.html: 商品管理後台
  • admin-orders.html: 訂單管理後台
  • assets/: 商品 SVG 視覺素材
  • data/shop.db: 執行後產生的本機資料庫(已忽略,不進版控)

Current Scope

目前這個版本定位為:

Phase 1: Ecommerce MVP

已完成:

  • 基本購物流程
  • 訂單建立
  • 商品資料後端化
  • 陽春後台管理

尚未完成但適合下一階段加入:

  • 會員登入 / 管理員登入
  • 商品刪除功能
  • 圖片上傳
  • 訂單搜尋與篩選
  • 金流 / 物流串接
  • 權限控制

Notes

  • 第一次啟動伺服器時,會自動建立 data/shop.db
  • 如果修改前端後看到舊畫面,請重新整理頁面或直接重開對應網址

About

A minimal storefront demo website

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages