Discount Store BD is a modern e-commerce platform built for customers across Bangladesh, offering quality products at competitive prices with a simple, fast, and responsive shopping experience.
π Live Website: https://discountstorebd.com/
- ποΈ Product Catalog β Browse products across multiple categories.
- π Search & Filtering β Search by keyword, category, price, and discounts.
- π Shopping Cart β Add products, update quantities, and manage cart items.
- β€οΈ Wishlist β Save products for later.
- π³ Multiple Payment Methods β COD, bKash, Nagad, Rocket, and SSLCommerz.
- π¦ Order Management β Place, track, and manage orders.
- π Order Notifications β Receive updates about order status.
- π¨βπΌ Admin Dashboard β Manage products, inventory, orders, and promotions.
- π± Responsive Design β Optimized for mobile, tablet, and desktop.
- β‘ Fast Performance β Designed for reliable performance across Bangladesh.
- Next.js / React.js
- JavaScript
- Tailwind CSS / Bootstrap
- Redux Toolkit / Context API
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT Authentication
- SSLCommerz
- bKash Merchant API
- Nagad API
- Rocket
- SMS Gateway
- Git & GitHub
- Postman
- VS Code
- Vercel
- DigitalOcean
- MongoDB Atlas
discount-store-bd/
β
βββ client/
β βββ public/
β βββ src/
β β βββ assets/
β β βββ components/
β β βββ pages/
β β βββ services/
β β βββ context/
β β βββ utils/
β β
β βββ .env.local
β βββ package.json
β
βββ server/
β βββ src/
β β βββ config/
β β βββ controllers/
β β βββ middleware/
β β βββ models/
β β βββ routes/
β β βββ services/
β β βββ utils/
β β
β βββ .env
β βββ package.json
β
βββ .gitignore
βββ LICENSE
βββ README.md
Make sure you have the following installed:
- Node.js v18 or higher
- npm v9 or higher
- Git
- MongoDB or MongoDB Atlas
- VS Code or another code editor
git clone https://github.com/your-username/discountstorebd.git
cd discountstorebdcd client
npm installcd ../server
npm installCreate:
server/.env
Add:
PORT=5000
NODE_ENV=development
MONGO_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/discountstorebd
JWT_SECRET=your_jwt_secret_key
# SSLCommerz
SSLCOMMERZ_STORE_ID=your_store_id
SSLCOMMERZ_STORE_PASSWORD=your_store_password
# bKash
BKASH_APP_KEY=your_bkash_app_key
BKASH_APP_SECRET=your_bkash_app_secret
BKASH_USERNAME=your_bkash_username
BKASH_PASSWORD=your_bkash_passwordCreate:
client/.env.local
Add:
NEXT_PUBLIC_API_BASE_URL=http://localhost:5000/api
NEXT_PUBLIC_SITE_URL=http://localhost:3000
β οΈ Never commit.envor.env.localfiles to GitHub.
cd server
npm run devBackend:
http://localhost:5000
Open a new terminal:
cd client
npm run devFrontend:
http://localhost:3000
| Method | Endpoint | Description | Access |
|---|---|---|---|
GET |
/api/products |
Get all products | Public |
GET |
/api/products/:id |
Get product details | Public |
POST |
/api/users/register |
Register user | Public |
POST |
/api/users/login |
Login user | Public |
GET |
/api/users/profile |
Get user profile | Private |
POST |
/api/orders |
Create order | Private |
GET |
/api/orders |
Get user orders | Private |
GET |
/api/orders/:id |
Get order details | Private |
POST |
/api/payment/init |
Initialize payment | Private |
PUT |
/api/orders/:id/status |
Update order status | Admin |
Customer
β
βΌ
Shopping Cart
β
βΌ
Checkout
β
βΌ
Select Payment Method
β
βββ Cash on Delivery
βββ bKash
βββ Nagad
βββ Rocket
βββ SSLCommerz
β
βΌ
Payment Processing
β
βΌ
Payment Verification
β
βΌ
Order Confirmation
β
βΌ
Order Tracking
Orders can move through the following stages:
Pending
β
Confirmed
β
Processing
β
Shipped
β
Out for Delivery
β
Delivered
Additional statuses:
- Cancelled
- Failed
- Returned
The application implements several security practices:
- JWT-based authentication
- Password hashing
- Protected API routes
- Role-based authorization
- Input validation
- Secure environment variables
- CORS configuration
- Protected admin routes
- Payment verification
npm run devStart development server.
npm run buildCreate production build.
npm run startStart production server.
npm run lintRun ESLint.
npm run devStart development server.
npm startStart production server.
Recommended platforms:
- Vercel
- Netlify
- AWS
- DigitalOcean
Recommended platforms:
- DigitalOcean
- AWS
- Render
- Railway
- VPS
- MongoDB Atlas
- Self-hosted MongoDB
Contributions are welcome!
- Fork the repository.
- Create a feature branch:
git checkout -b feature/AmazingFeature- Make your changes.
- Commit your changes:
git commit -m "Add AmazingFeature"- Push your branch:
git push origin feature/AmazingFeature- Open a Pull Request.
If you find a bug or have a feature request, please open an issue and provide:
- Clear description of the issue
- Steps to reproduce
- Expected behavior
- Actual behavior
- Screenshots, if applicable
This project is licensed under the MIT License.
See the LICENSE file for details.
π Website: https://discountstorebd.com/
π§ Email: support@discountstorebd.com
π Location: Dhaka, Bangladesh
If you find this project useful, please consider giving the repository a β on GitHub.
Built with β€οΈ in Bangladesh π§π©