Toko Serbaguna untuk menjual produk fisik dan voucher digital dengan integrasi WhatsApp checkout. Dibangun dengan Next.js dan Tailwind CSS.
- 📱 Mobile-First Design - Dioptimalkan untuk penggunaan mobile
- 🛒 Shopping Cart - Sistem keranjang belanja dengan counter real-time
- 💬 WhatsApp Integration - Checkout langsung ke WhatsApp admin
- 📦 Mixed Products - Mendukung produk fisik dan voucher digital
- 🔧 JSON Configuration - Semua data tersimpan dalam file JSON
- ⚡ Real-time Updates - Counter dan total harga update otomatis
- Node.js 18+
- npm atau yarn
-
Clone repository
git clone https://github.com/arifintajul4/toko-wa.git cd toko-wa -
Install dependencies
npm install # atau yarn install -
Run development server
npm run dev # atau yarn dev -
Open browser Buka http://localhost:3000
Semua konfigurasi tersimpan dalam file `data/store-config.json`:
{
"storeInfo": {
"name": "TOKO SERBAGUNA",
"tagline": "Produk & Voucher Terbaik!",
"whatsappNumber": "6281234567890",
"minPurchase": 2
}
}{
"products": [
{
"id": "7",
"name": "Produk Baru",
"type": "physical", // atau "voucher"
"price": 75000,
"originalPrice": 90000, // optional untuk diskon
"image": "/path/to/image.jpg",
"description": "Deskripsi produk"
}
]
}*PESANAN BARU*
Voucher Gaming Premium x2 = Rp50.000
Kaos Premium x1 = Rp85.000
*Total: Rp135.000*
Nama: John Doe
Email: john@email.com
No. HP: 08123456789
Terima kasih!
- Ganti nomor WhatsApp di
store-config.json - Format:
"whatsappNumber": "6281234567890" - Tanpa tanda + di depan
{
"storeInfo": {
"minPurchase": 3 // ubah sesuai kebutuhan
}
}{
"voucherInfo": {
"title": "📋 Informasi Produk",
"details": [
"Voucher berlaku 7 hari setelah pembelian",
"Garansi 24 jam setelah pembelian"
// tambah/ubah informasi di sini
]
}
}{
"formLabels": {
"name": "👤 Nama Pemesan:",
"email": "📧 Email:",
"phone": "📱 No. WhatsApp:"
// ubah label sesuai kebutuhan
}
}voucher-store/
├── app/
│ ├── page.tsx # Main component
│ ├── layout.tsx # Root layout
│ └── globals.css # Global styles
├── data/
│ └── store-config.json # Konfigurasi utama
├── components/
│ └── ui/ # Shadcn UI components
├── public/ # Static assets
└── README.md # Dokumentasi ini
- Framework: Next.js 14 (App Router)
- Styling: Tailwind CSS
- UI Components: Shadcn/ui
- Icons: Lucide React
- Language: TypeScript
- Configuration: JSON
- Push code ke GitHub
- Connect repository di Vercel
- Deploy otomatis
npm run build
npm start- Fork repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add some AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
Distributed under the MIT License. See LICENSE for more information.
- Next.js - React framework
- Tailwind CSS - CSS framework
- Shadcn/ui - UI components
- Lucide - Icon library
Made with ❤️ for Indonesian e-commerce