尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證This is an application whereby users can order gift bags containing sweets for numerous occasions.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
A storefront for a single product: the Sweet Surprise Gift Bag — a bag filled with a random
assortment of sweets, finished with a personalised kind-message label.
Frontend on Vercel, API on Render, Postgres on Neon. The API runs on a free instance that sleeps
when idle, so the first request after a quiet spell can take up to a minute.檢視完整 README ↗A storefront for a single product: the Sweet Surprise Gift Bag — a bag filled with a random assortment of sweets, finished with a personalised kind-message label.
Live demo: https://gift-sweets-bag-application.vercel.app
Frontend on Vercel, API on Render, Postgres on Neon. The API runs on a free instance that sleeps when idle, so the first request after a quiet spell can take up to a minute.
Checkout is real: orders are validated, priced, and stored by a hand-written backend — no payment is taken, but nothing here is faked or mocked.
Frontend: React + TypeScript, Vite, Tailwind CSS v4, React Router, Zustand, Zod.
Backend (server/): Node.js + Express + TypeScript, PostgreSQL + Prisma, JWT auth
(bcryptjs + jsonwebtoken), Zod validation, Vitest + Supertest. Written from scratch — no
backend-as-a-service.
See TUTORIAL.md for how the frontend was built and TUTORIAL_BACKEND.md for how the backend was built — both walk through the project step by step so you can rebuild it yourself.
# 1. Database (pick one)
docker compose up -d # or: brew services start postgresql@16
# 2. API
cd server
cp .env.example .env # then set a real JWT_SECRET (see TUTORIAL_BACKEND.md)
npm install
npx prisma migrate dev --name init
npm run dev # http://localhost:4000
# 3. Frontend (new terminal, repo root)
cp .env.example .env
npm install
npm run dev # http://localhost:5173
Needs Docker Desktop, or Postgres 16 installed with Homebrew. A fresh Homebrew install also
needs the giftbags role and database creating by hand; see
TUTORIAL_BACKEND.md step 1 for the commands.
14 tests (Vitest + Supertest) cover registration and login, and the orders API: auth checks,
server-side pricing that ignores a client-sent price, users only seeing their own orders, and
deleting an order. They run against a real Postgres database, giftbags_test (see
TEST_DATABASE_URL in server/.env), which is wiped between tests so it never touches your
dev data.
One-time setup: create the test database, then apply the migrations to it:
# Docker:
docker compose exec postgres createdb -U giftbags giftbags_test
# Homebrew:
psql postgres -c "CREATE DATABASE giftbags_test OWNER giftbags;"
cd server
DATABASE_URL="postgresql://giftbags:giftbags@localhost:5432/giftbags_test" npx prisma migrate deploy
Then run the tests:
cd server && npm run test
If you see Database "giftbags_test" does not exist, the one-time setup above hasn't been run
yet on this machine.