Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Beta Mart POS System

Sistem Point of Sale (POS) modern untuk Beta Mart yang dibangun dengan Next.js, TypeScript, dan Tailwind CSS.

Beta Mart POS TypeScript Tailwind CSS

πŸš€ Fitur Utama

πŸ“Š Dashboard

  • Overview Penjualan: Total penjualan, jumlah order, dan statistik harian
  • Chart Interaktif: Grafik penjualan 7 hari terakhir dan produk terlaris
  • Quick Actions: Akses cepat ke fitur POS, manajemen produk, laporan, dan invoice

πŸ›’ Point of Sale (POS)

  • Interface Intuitif: Desain yang mudah digunakan untuk kasir
  • Search & Filter: Pencarian produk dengan nama atau barcode, filter berdasarkan kategori
  • Keranjang Belanja: Kelola item dengan mudah, update quantity, dan hapus item
  • Checkout Process: Input data pelanggan opsional dan proses pembayaran
  • Invoice Generation: Generate dan download invoice dalam format PDF

πŸ“¦ Manajemen Produk

  • Daftar Produk: View semua produk dengan informasi lengkap
  • Stock Management: Update stock dengan tracking riwayat penyesuaian
  • Status Monitoring: Alert untuk stock rendah dan habis
  • Kategori: Organisasi produk berdasarkan kategori

πŸ“‹ Invoice Management

  • Daftar Invoice: View dan manage semua invoice yang telah dibuat
  • Detail Invoice: Informasi lengkap transaksi
  • PDF Download: Download invoice dalam format PDF siap print
  • Search Function: Cari invoice berdasarkan ID atau nama pelanggan

πŸ“ˆ Laporan & Analytics

  • Sales Analytics: Grafik penjualan harian dan trend
  • Top Products: Produk terlaris dengan visualisasi
  • Category Distribution: Distribusi penjualan per kategori
  • Performance Metrics: KPI dan metrics penting

βš™οΈ Pengaturan

  • Store Settings: Konfigurasi informasi toko
  • User Management: Pengaturan pengguna dan role
  • System Configuration: Pengaturan pajak, mata uang, dan notifikasi

πŸ› οΈ Teknologi

  • Frontend: Next.js 14 + TypeScript
  • Styling: Tailwind CSS
  • Icons: Heroicons
  • Charts: Recharts
  • PDF Generation: jsPDF
  • Notifications: React Hot Toast
  • Date Handling: date-fns

πŸ“¦ Instalasi

Prerequisites

  • Node.js 18.x atau lebih baru
  • npm atau yarn

Langkah Instalasi

  1. Clone Repository

    git clone https://github.com/kancralabs/pos_systems.git
    cd pos_systems
  2. Install Dependencies

    npm install
  3. Jalankan Development Server

    npm run dev
  4. Buka Browser Akses http://localhost:3000 untuk melihat aplikasi

πŸ—οΈ Struktur Project

src/
β”œβ”€β”€ app/                    # App Router Pages
β”‚   β”œβ”€β”€ layout.tsx         # Root Layout
β”‚   β”œβ”€β”€ page.tsx           # Dashboard Page
β”‚   β”œβ”€β”€ pos/               # POS Page
β”‚   β”œβ”€β”€ products/          # Products Management
β”‚   β”œβ”€β”€ invoices/          # Invoice Management
β”‚   β”œβ”€β”€ reports/           # Reports & Analytics
β”‚   └── settings/          # Settings Page
β”œβ”€β”€ components/            # Reusable Components
β”‚   β”œβ”€β”€ Header.tsx         # Navigation Header
β”‚   β”œβ”€β”€ ProductCard.tsx    # Product Display Card
β”‚   └── Cart.tsx           # Shopping Cart Component
β”œβ”€β”€ data/                  # Data & Mock Data
β”‚   └── dummy.ts           # Sample Data
β”œβ”€β”€ types/                 # TypeScript Type Definitions
β”‚   └── index.ts           # Main Types
└── utils/                 # Utility Functions
    └── pdfGenerator.ts    # PDF Generation Utils

🎯 Penggunaan

1. Dashboard

  • Lihat overview penjualan dan statistik
  • Akses quick actions untuk navigasi cepat
  • Monitor performa dengan chart interaktif

2. Point of Sale

  • Pilih produk yang ingin dijual
  • Atur quantity sesuai kebutuhan
  • Masukkan data pelanggan (opsional)
  • Proses checkout dan download invoice

3. Manajemen Produk

  • View daftar semua produk
  • Update stock dengan alasan penyesuaian
  • Monitor status stock (Normal/Rendah/Habis)

4. Invoice & Laporan

  • View dan download invoice dalam PDF
  • Analisis penjualan dengan berbagai chart
  • Monitor produk terlaris dan trend

🎨 Fitur UI/UX

  • Responsive Design: Optimal di desktop, tablet, dan mobile
  • Modern Interface: Clean dan professional design
  • Interactive Elements: Hover effects dan smooth transitions
  • Toast Notifications: Feedback real-time untuk user actions
  • Loading States: Proper loading indicators
  • Error Handling: User-friendly error messages

🚧 Development

Available Scripts

# Development
npm run dev          # Start development server

# Build
npm run build        # Build for production
npm run start        # Start production server

# Linting
npm run lint         # Run ESLint

Environment Variables

Buat file .env.local untuk konfigurasi environment:

NEXT_PUBLIC_APP_NAME="Beta Mart POS"
NEXT_PUBLIC_STORE_NAME="Beta Mart"
NEXT_PUBLIC_CURRENCY="IDR"

πŸ”§ Kustomisasi

Menambah Produk Baru

Edit file src/data/dummy.ts untuk menambahkan produk:

{
  id: 'unique-id',
  name: 'Nama Produk',
  price: 10000,
  stock: 50,
  category: 'Kategori',
  image: '/path/to/image',
  barcode: 'barcode-number',
  description: 'Deskripsi produk'
}

πŸ› Troubleshooting

Common Issues

  1. Chart tidak muncul

    • Pastikan container memiliki height yang defined
    • Check console untuk error Recharts
  2. PDF tidak generate

    • Pastikan jsPDF sudah terinstall
    • Check browser compatibility
  3. Build error

    • Jalankan npm run lint untuk check errors
    • Pastikan semua dependencies ter-install

🀝 Contributing

  1. Fork repository
  2. Buat feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add some AmazingFeature')
  4. Push ke branch (git push origin feature/AmazingFeature)
  5. Buat Pull Request

πŸ“„ License

Distributed under the MIT License.

πŸ‘₯ Team

  • Developer: Beta Mart Development Team
  • Project: POS System Showcase

πŸ“ž Support

Untuk pertanyaan dan support:

πŸ—ΊοΈ Roadmap

  • v2.0: Database integration (PostgreSQL/MongoDB)
  • v2.1: User authentication & authorization
  • v2.2: Multi-store support
  • v2.3: Advanced reporting & analytics
  • v2.4: Mobile app (React Native)
  • v2.5: Cloud deployment & scaling

Beta Mart POS System - Solusi modern untuk kebutuhan retail Anda ✨

Releases

Packages

Contributors

Languages