尚未检测到更新。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.