尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Production-ready MERN e-commerce platform for a Nepal-based pickle (achar) company. Fully responsive, SEO-optimised, with Khalti and eSewa payment integration and a complete admin dashboard.
The client runs on and the API on.
No local MongoDB needed for development. If MONGO_URI is not set, the server falls back to an in-memory database automatically. Data is discarded when the server stops; run npm run seed to populate it.檢視完整 README ↗Production-ready MERN e-commerce platform for a Nepal-based pickle (achar) company. Fully responsive, SEO-optimised, with Khalti and eSewa payment integration and a complete admin dashboard.
# 1. Install all dependencies (root + both workspaces)
npm install
# 2. Copy the server env template and fill in credentials
cp server/.env.example server/.env
# 3. Start both server and client in watch mode
npm run dev
The client runs on http://localhost:5173 and the API on http://localhost:5000.
No local MongoDB needed for development. If MONGO_URI is not set, the server falls back to an in-memory database automatically. Data is discarded when the server stops; run npm run seed to populate it.
| Command | What it does |
|---|---|
npm run dev | Start server + client concurrently |
npm run build | Production build of the React client |
npm run seed | Seed admin account, categories, products, settings |
npm run test | Run the server test suite |
npm run lint | ESLint both workspaces |
npm run format | Prettier over the whole repo |
achar-ghar/
├── client/ React SPA
│ ├── public/ Static assets (favicon, manifest, og-default.png)
│ ├── scripts/ make-assets.mjs — generates PNG assets at build time
│ └── src/
│ ├── components/ Shared UI components
│ ├── context/ Auth, Cart, Settings contexts
│ ├── hooks/ useFetch, useMutation, useDebounced, useSeo
│ ├── lib/ format.js, seo.js, http.js
│ └── pages/ All 26 public + 21 admin pages
└── server/ Express API
├── src/
│ ├── config/ env.js, db.js, logger.js
│ ├── controllers/
│ ├── middleware/
│ ├── models/
│ ├── routes/
│ └── services/ PaymentService (KhaltiProvider, EsewaProvider)
├── .env.example Document all env vars — copy to .env
└── seeds/
See server/.env.example for the full list with comments. Required for production:
| Variable | Purpose |
|---|---|
MONGO_URI | MongoDB connection string |
JWT_SECRET | ≥ 32-char random string |
JWT_REFRESH_SECRET | ≥ 32-char, different from JWT_SECRET |
CLIENT_URL | Deployed frontend URL (for CORS + cookies) |
KHALTI_SECRET_KEY | Khalti server-side key |
ESEWA_SECRET_KEY | eSewa HMAC key |
CLOUDINARY_* | Cloud name, API key, API secret |
Generate secrets with:
node -e "console.log(require('crypto').randomBytes(48).toString('hex'))"
Push the repo; Netlify picks up netlify.toml automatically. Set VITE_API_URL in the Netlify environment to your API URL. The toml proxies /sitemap.xml and /robots.txt to the API.
Import the repo and set the root directory to client. vercel.json handles the SPA fallback and proxy rewrites.
Deploy the server workspace. Set all required env vars (see above). The server refuses to start in production if MONGO_URI, JWT_SECRET, or CLIENT_URL are missing.
og-default.png for all routes; crawlers that execute JavaScript (Google, Facebook, Twitter) will see the correct <meta> tags rendered by the client.taxRate field to SiteSettings and include it in the server-side total calculation if needed.RESERVATION_TTL_MINUTES (default 45) when an order is placed. If payment is not completed in that window, the reservation is released. COD orders are confirmed immediately and are not swept.role: admin. There is no client-side guard that can be bypassed.assertProductionEnv() in server/src/config/env.js fails fast on startup if any required secret is missing or on its insecure development default.