Ecommerce Template
Next.js·React 등으로 만든 최신 전자상거래 템플릿
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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.