ulba.ai
완벽한 뷰티 패키징을 찾아드립니다
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기e-commerce frontend
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗The customer-facing storefront for Coovi, an online saree shop serving customers across Bangladesh. Shoppers browse products, keep a guest cart in the browser, check out with Cash on Delivery, and track orders by order number and phone.
Built with Next.js 16 (App Router), React 19, Tailwind CSS 4 and Zustand.
Requires Node.js 20.9+ and pnpm 10.28.2 (pinned via packageManager).
pnpm install
pnpm dev
Open http://localhost:3000. The storefront needs the Coovi API running; by default it calls http://localhost:5000/api.
Set these in .env.local:
| Variable | Default | Purpose |
|---|---|---|
NEXT_PUBLIC_API_URL | http://localhost:5000/api | Base URL of the Coovi API |
NEXT_PUBLIC_SITE_URL | http://localhost:3000 | Public site URL, used for metadata, the sitemap and WhatsApp share links |
NEXT_PUBLIC_WHATSAPP_NUMBER | 8801700000000 (placeholder) | Fallback WhatsApp number, digits in international format, used until shop settings load from the API. The real number is set on the admin Settings page |
STOREFRONT_API_KEY | none | Server-only secret, equal to STOREFRONT_API_KEY on the API; gives this storefront's server its own rate limit |
| Command | What it does |
|---|---|
pnpm dev | Start the development server |
pnpm build | Production build |
pnpm start | Serve the production build |
pnpm lint | Run ESLint |
pnpm typecheck | Generate Next.js route types (next typegen), then run tsc --noEmit |
pnpm test | Run the test suite once |
pnpm test:watch | Run tests in watch mode |
pnpm coverage | Run tests with a coverage report (written to coverage/, open coverage/index.html) |
Tests use Vitest and live next to the code they cover as *.test.ts(x). The default environment is Node; files that need browser APIs opt in with a // @vitest-environment jsdom comment at the top (see lib/cartStore.test.ts).
Covered today, at 100% line and branch coverage:
lib/api.ts: request URLs and query params, error and timeout handling, and that orders send only product IDs and quantitieslib/cartStore.ts: cart actions, localStorage persistence, totals and countslib/utils.ts: price formattinglib/site.ts: site URL, Open Graph and WhatsApp link helperslib/useDialog.ts: Escape, focus trap, scroll lock and focus return for dialogsComponent tests use React Testing Library; components/CartDrawer.test.tsx covers the cart drawer's dialog behaviour. Other components and pages are not tested yet.
GitHub Actions (.github/workflows/ci.yml) runs on every pull request and on pushes to master, as three parallel jobs:
pnpm lintpnpm typecheckpnpm coverage, with the coverage report uploaded as a build artifact for 14 daysapp/ Routes: home (in the (home) route group), saree, sale,
products/[slug], cart, checkout,
order-confirmation/[orderNumber], track-order,
track-order/[orderNumber], about, contact, policy pages.
Each route has its own loading.tsx, built from components/Skeleton.tsx
components/ UI components (cart drawer, filters, product card, gallery, ...)
lib/
api.ts API client (fetch with a 60s timeout on the server, 30s in the browser)
cartStore.ts Zustand guest cart, persisted to localStorage as "coovi-cart"
types.ts Shared types for products, cart items and orders
utils.ts Formatting helpers
The cart lives only in the browser. At checkout the storefront sends the customer's details plus product IDs and quantities, and nothing else. The API is authoritative for prices, stock, delivery fees and totals, and recomputes them from its own database. The API contract shared with the other Coovi apps is ../API_ENDPOINTS.md.
Any Next.js host works. Run pnpm build and pnpm start, or deploy to Vercel. Set the environment variables above in production. Product images are allowed from res.cloudinary.com (photos uploaded in the admin), images.pexels.com, images.unsplash.com and picsum.photos (see next.config.ts).