尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
বাজার দর (BazarDor) is a Bangla market-price website for everyday essentials. It shows today's price of rice, vegetables, fish, meat, pulses, oil and spices across twelve markets in Bangladesh, which items went up or down since yesterday, and how each item's price has moved over the last week and month — all in Bengali, with prices written in Bengali numerals. • Live site: https://bazar-dor-vert.vercel.app • Repository: https://github.com/kawsar-codes/bazar-dor檢視完整 README ↗
বাজার দর (BazarDor) is a Bangla market-price website for everyday essentials. It shows today's price of rice, vegetables, fish, meat, pulses, oil and spices across twelve markets in Bangladesh, which items went up or down since yesterday, and how each item's price has moved over the last week and month — all in Bengali, with prices written in Bengali numerals.
| Technology | Purpose |
|---|---|
| Next.js 16 (App Router) | pages, routing, server rendering |
| React 19 | UI components |
| TypeScript | type safety across the data layer and components |
| Tailwind CSS v4 | styling and responsiveness |
| daisyUI 5 | component styles, themed from the Figma design tokens |
| BetterAuth | email/password, Google and GitHub authentication |
| MongoDB Atlas | stores users and sessions |
| react-hot-toast | toast notifications |
| Vercel | hosting |
Live market prices from an API, in Bengali numerals. Every product is fetched from the
Bazardor API and rendered with Bengali digits (১,৮৫০ টাকা), the correct Bangla unit
(প্রতি কেজি, প্রতি লিটার, প্রতি ডজন, প্রতি পিস), and a green ▲ / red ▼ / grey —
badge showing how much the price moved since yesterday.
Risers and fallers at a glance. The home page opens with the six items whose prices rose the most today and the six that fell the most, followed by the full product list — so you can see what got expensive before scrolling anywhere.
An infinite price ticker. A marquee strip under the navbar scrolls every product's name, price and change continuously, and pauses when you hover it so you can read a row.
Per-market price breakdown behind a login. Signing in unlocks each product's detail page: its lowest, highest and average price, plus a table of all twelve markets with their own price ranges. Visitors who are not signed in are sent to the sign-in page and brought back to the page they wanted once they log in.
Category browsing with a correct numeric sort. Each of the eight categories has its own
page with a সাজান dropdown (ডিফল্ট / দাম: কম থেকে বেশি / দাম: বেশি থেকে কম). The sort runs
on the underlying numbers, not on the Bengali text, so ৯ correctly comes before ১০.
Also included: full authentication with Google and GitHub, a profile page with an update-name form, loading skeletons on every data-driven page, toast notifications for every auth action, a Bangla 404 page, and a layout that works from 375px phones up to desktop.
npm install
cp .env.example .env.local # then fill in the values
npm run dev
| Variable | Where it comes from |
|---|---|
MONGODB_URI | MongoDB Atlas → Connect → Drivers |
BETTER_AUTH_SECRET | openssl rand -base64 32 |
BETTER_AUTH_URL, NEXT_PUBLIC_APP_URL | http://localhost:3000 locally, the deployed URL in production |
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET | Google Cloud Console → Credentials → OAuth client ID |
GITHUB_CLIENT_ID / GITHUB_CLIENT_SECRET | GitHub → Settings → Developer settings → OAuth Apps |
OAuth callback URLs are /api/auth/callback/google and /api/auth/callback/github.
Social login is optional in development: a provider is only registered when both of its variables are set, so the site runs fine with email/password alone.
All product data comes from the assignment's API:
https://openapi.programming-hero.com/api/bazardor — 33 products across 8 categories, each with
twelve per-market price ranges.
src/lib/api.ts is written so that a flaky API never takes the site down. Each request tries
the primary base URL, then the alternative one, retrying a few times with a growing pause and a
six-second timeout per attempt. If every attempt fails it serves the last successful response,
and if there is none it falls back to src/data/*.json — a snapshot of the API captured while
it was healthy. The live API is always tried first; the snapshot only ever appears when the API
is unreachable (its free Cloudflare Worker rate-limits under load).
src/
app/ routes — home, product/[slug], category/[slug], signin, signup, profile
components/ navbar, ticker, hero, product cards, forms, skeletons
lib/
api.ts typed fetchers for the Bazardor API
bn.ts Bengali digits, units, change badges, Bangla date
auth.ts BetterAuth server instance
Built by Kawsar Akando