TropicGo 熱趣,藏在回歸線裡的熱情面紗,等你來一探究竟!
Translation pending
CommerceVue · JavaScriptGitHub @chloeloOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
熱帶旅遊電商網站,包含前台購物流程與後台管理系統。 前身是純前端的 Vue 2 練習作品(v1.0),原本串接的第三方課程 API 已下架。v2 保留原本的視覺設計,改寫成前後端分離的全端專案:自己設計資料庫與 API,並部署到雲端。 後端使用 Render 免費方案,閒置一段時間後會休眠,第一次開啟可能要等數十秒。 後台登入頁按「使用示範帳號登入」即可進入。示範帳號可以瀏覽所有後台頁面,但不能新增、修改或刪除資料。 前台結帳可使用優惠碼 tropicgo90(全站 9 折)。 首頁 產品列表 產品詳情 結帳:填寫資料 後台(示範帳號,唯讀) 手機版 • 產品列表(依地區篩選)、產品詳情、相關產品推薦 • 我的收藏(存在瀏覽器,不需登入) • 購物車與結帳流程:購物車 → 填寫資料 → 確認訂單並付款(模擬)→ 完成,可使用優惠碼 • 未付款的訂單會記在瀏覽器,可從購物車選單繼續付款 • RWD,支援手機與桌機Read the full README ↗
熱帶旅遊電商網站,包含前台購物流程與後台管理系統。
前身是純前端的 Vue 2 練習作品(v1.0),原本串接的第三方課程 API 已下架。v2 保留原本的視覺設計,改寫成前後端分離的全端專案:自己設計資料庫與 API,並部署到雲端。
| 項目 | 網址 |
|---|---|
| 前台 | https://tropicgo.vercel.app |
| 後台 | https://tropicgo.vercel.app/admin/login |
| API 文件(Swagger UI) | https://tropicgo-api.onrender.com/api-docs/ |
| v1 舊版 | https://chloelo.github.io/TropicGo/ |
後端使用 Render 免費方案,閒置一段時間後會休眠,第一次開啟可能要等數十秒。
後台登入頁按「使用示範帳號登入」即可進入。示範帳號可以瀏覽所有後台頁面,但不能新增、修改或刪除資料。
前台結帳可使用優惠碼 tropicgo90(全站 9 折)。
前台
後台
| v1 | v2 | |
|---|---|---|
| 前端 | Vue 2、Vue CLI、JavaScript | Vue 3、Vite、TypeScript |
| 樣式 | Bootstrap 4、SCSS | UnoCSS、Naive UI |
| 後端 | 第三方課程 API(已下架) | 自行開發 Express API |
| 資料庫 | 無 | PostgreSQL |
| 部署 | GitHub Pages | Vercel、Render(Docker)、Neon |
前端
<script setup>)+ Vite + TypeScript後端
部署
瀏覽器
│
├─ 前端(Vercel) Vue 3 SPA
│
└─ API(Render) Express,Docker 容器
│
└─ PostgreSQL(Neon)
UptimeRobot ── 每 5 分鐘呼叫 /healthcheck
API 規格採 spec-first:先寫 backend/openapi.yaml,前端用它產生型別化的 API client,後端依規格實作,同一份規格也是線上的 Swagger 文件。
API 文件在正式環境預設關閉,以環境變數 API_DOCS_ENABLED 開啟。本專案為了展示而開放;後台 API 仍需登入,示範帳號也無法寫入。
本專案使用 AI 程式助理(Claude Code)協作開發,commit 中標示為共同作者。
我負責的部分:
AI 主要負責依照決策撰寫程式、整理文件,以及提出可行的方案供我比較。
需要 Node.js 24 與 Docker Desktop。
# 1. 啟動資料庫
docker compose up -d postgres
# 2. 建立環境變數檔,再依需求修改帳號密碼
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env
# 3. 安裝套件
npm --prefix backend ci
npm --prefix frontend ci
# 4. 建立初始資料(地區、優惠券、帳號)和產品範例資料
npm --prefix backend run seed
npm --prefix backend run seed:tours
# 5. 分別啟動後端和前端
npm --prefix backend run dev
npm --prefix frontend run dev
常用指令、改密碼、正式環境操作等完整說明見 docs/development.md。
TropicGo/
├── backend/ Express API
│ ├── controllers/ 各路由的處理邏輯
│ ├── db/ 資料庫連線、migrations
│ ├── entities/ TypeORM 資料表定義
│ ├── middlewares/ 驗證、權限、rate limit
│ ├── routes/ 路由
│ ├── scripts/ seed、重設密碼
│ ├── openapi.yaml API 規格
│ └── Dockerfile
├── frontend/ Vue 3 前端
│ └── src/
│ ├── api/ 由 OpenAPI 產生的 API client
│ ├── components/
│ ├── stores/ Pinia
│ └── views/ front(前台)、admin(後台)
├── docs/ 開發文件
└── docker-compose.yml 本機資料庫