Skip to content

Website E-Commerce lengkap untuk Toko Fotocopy & ATK dengan desain modern dan fitur premium.

Notifications You must be signed in to change notification settings

4lifbima/e-commerce-atk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–¨οΈ Copy&ATK Premium - E-Commerce Web App

Website E-Commerce lengkap untuk Toko Fotocopy & ATK dengan desain modern dan fitur premium.

πŸ“‹ Daftar Isi

✨ Fitur

πŸ” Autentikasi

  • Login untuk Admin dan Customer
  • Register Customer dengan validasi
  • Middleware untuk proteksi halaman admin
  • Session management yang aman

πŸ“¦ Manajemen Produk ATK

  • CRUD lengkap untuk produk (Create, Read, Update, Delete)
  • Kategori produk dinamis
  • Upload foto produk
  • Manajemen stok real-time
  • Filter & pencarian produk
  • Halaman detail produk

πŸ–¨οΈ Layanan Fotocopy

  • Form pemesanan fotocopy interaktif
  • Pilihan kertas: A4, F4, A3
  • Warna: Hitam Putih / Berwarna
  • Bolak-balik (Duplex)
  • Jilid: Spiral, Lakban, Hardcover
  • Kalkulasi otomatis biaya total
  • Simpan pesanan ke database

πŸ›’ Keranjang & Checkout

  • Shopping cart berbasis session
  • Update jumlah item di cart
  • Hapus item dari cart
  • Halaman checkout lengkap
  • Metode pembayaran: COD & Transfer Bank
  • Input data pengiriman
  • Order tracking dengan kode unik

πŸ“„ Invoice & Struk

  • Generate invoice untuk customer
  • Cetak struk/nota untuk admin
  • PDF export untuk laporan
  • Riwayat pesanan lengkap

πŸ“Š Dashboard Admin

  • Sidebar navigasi modern
  • Statistik real-time:
    • Total penjualan harian
    • Total penjualan bulanan
    • Total pesanan & status
    • Total produk aktif
  • Grafik penjualan 7 hari (Chart.js)
  • Produk terlaris bulan ini
  • Alert stok menipis
  • Pesanan terbaru
  • Status pesanan (Pending, Diproses, Selesai, Dibatalkan)

πŸ’° Manajemen Keuangan

  • Catatan pemasukan & pengeluaran
  • Rekap penjualan per hari/bulan
  • Laporan keuangan lengkap
  • Export ke PDF
  • Filter berdasarkan tanggal

🎨 Desain Premium

  • Mobile-first responsive design
  • TailwindCSS untuk styling modern
  • Gradient backgrounds
  • Smooth animations
  • Card hover effects
  • Shadow & rounded corners premium
  • Sticky navigation bar
  • Font Awesome icons

πŸ› οΈ Teknologi

  • Backend: PHP Native (Tanpa Framework)
  • Database: MySQL/MariaDB
  • Frontend: TailwindCSS (via CDN)
  • Icons: Font Awesome 6
  • Charts: Chart.js
  • Session Management: PHP Sessions
  • Security: Password hashing, SQL injection prevention

πŸ“ Struktur Folder

toko-atk-fotocopy/
β”‚
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ database.php          # Koneksi database
β”‚   └── session.php            # Session & auth management
β”‚
β”œβ”€β”€ admin/
β”‚   β”œβ”€β”€ dashboard.php          # Dashboard dengan sidebar
β”‚   β”œβ”€β”€ produk.php             # CRUD Produk
β”‚   β”œβ”€β”€ kategori.php           # CRUD Kategori
β”‚   β”œβ”€β”€ pesanan.php            # Manajemen pesanan
β”‚   β”œβ”€β”€ fotocopy-orders.php    # Order fotocopy
β”‚   β”œβ”€β”€ keuangan.php           # Laporan keuangan
β”‚   β”œβ”€β”€ settings.php           # Pengaturan harga
β”‚   └── includes/
β”‚       β”œβ”€β”€ header.php         # Header admin
β”‚       └── sidebar.php        # Sidebar admin
β”‚
β”œβ”€β”€ uploads/                   # Folder upload foto produk
β”‚
β”œβ”€β”€ assets/
β”‚   └── css/
β”‚       └── custom.css         # Custom CSS jika diperlukan
β”‚
β”œβ”€β”€ index.php                  # Homepage
β”œβ”€β”€ login.php                  # Halaman login
β”œβ”€β”€ register.php               # Halaman register
β”œβ”€β”€ logout.php                 # Logout handler
β”‚
β”œβ”€β”€ produk.php                 # List semua produk
β”œβ”€β”€ detail-produk.php          # Detail produk
β”œβ”€β”€ cart.php                   # Keranjang belanja
β”œβ”€β”€ cart-action.php            # Handler aksi cart
β”œβ”€β”€ checkout.php               # Halaman checkout
β”œβ”€β”€ checkout-process.php       # Proses checkout
β”‚
β”œβ”€β”€ fotocopy.php               # Form order fotocopy
β”œβ”€β”€ fotocopy-process.php       # Proses order fotocopy
β”‚
β”œβ”€β”€ invoice.php                # Invoice customer
β”œβ”€β”€ pesanan-saya.php           # Riwayat pesanan customer
β”‚
└── README.md                  # Dokumentasi

πŸš€ Instalasi

Persyaratan Sistem

  • PHP 7.4 atau lebih tinggi
  • MySQL 5.7 atau MariaDB 10.2+
  • Web Server (Apache/Nginx)
  • Browser modern

Langkah Instalasi

  1. Clone atau Download Project

    git clone https://github.com/username/toko-atk-fotocopy.git
    cd toko-atk-fotocopy
  2. Buat Database

    • Buka phpMyAdmin atau MySQL client
    • Buat database baru: toko_atk_fotocopy
    • Import file SQL yang sudah disediakan
    • Atau jalankan query dari database_schema.sql
  3. Konfigurasi Database

    Edit file config/database.php:

    define('DB_HOST', 'localhost');
    define('DB_USER', 'root');          // Sesuaikan username
    define('DB_PASS', '');              // Sesuaikan password
    define('DB_NAME', 'toko_atk_fotocopy');
  4. Buat Folder Upload

    mkdir uploads
    chmod 755 uploads
  5. Jalankan Server

    Menggunakan XAMPP/WAMP:

    • Copy folder project ke htdocs/ atau www/
    • Akses: http://localhost/toko-atk-fotocopy

    Atau menggunakan PHP Built-in Server:

    php -S localhost:8000
  6. Login Admin

    • URL: http://localhost/toko-atk-fotocopy/login.php
    • Email: admin@tokofotocopy.com
    • Password: admin
  7. Login User

    • URL: http://localhost/toko-atk-fotocopy/login.php
    • Email: alif@gmail.com
    • Password: alifbima

πŸ”‘ Akun Demo

Admin

  • Email: admin@tokofotocopy.com
  • Password: admin123

Customer (Setelah Register)

  • Buat akun baru melalui halaman register
  • Atau gunakan SQL:
    INSERT INTO users (nama, email, password, role) 
    VALUES ('Customer Demo', 'customer@demo.com', 
            '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 
            'customer');
    Password: demo123

πŸ“Š Relasi Database

Tabel Utama:

  1. users - Data pengguna (admin & customer)
  2. kategori - Kategori produk
  3. produk - Data produk ATK
  4. pesanan - Data pesanan
  5. detail_pesanan - Detail item pesanan
  6. pesanan_fotocopy - Pesanan fotocopy
  7. keuangan - Catatan keuangan
  8. harga_fotocopy - Setting harga fotocopy
  9. harga_jilid - Setting harga jilid

Relasi:

  • produk.kategori_id β†’ kategori.id
  • pesanan.user_id β†’ users.id
  • detail_pesanan.pesanan_id β†’ pesanan.id
  • detail_pesanan.produk_id β†’ produk.id
  • pesanan_fotocopy.pesanan_id β†’ pesanan.id
  • keuangan.pesanan_id β†’ pesanan.id

🎯 Fitur Tambahan (Bonus)

  1. Export Laporan ke PDF

    • Menggunakan library TCPDF atau DomPDF
    • Laporan penjualan harian/bulanan
    • Invoice professional
  2. Notifikasi Real-time

    • Alert pesanan baru untuk admin
    • Badge counter di menu
  3. Search & Filter Advanced

    • Filter berdasarkan kategori
    • Pencarian produk
    • Sort by harga/nama
  4. Rating & Review (Optional)

    • Customer bisa review produk
    • Rating bintang
  5. Wishlist (Optional)

    • Simpan produk favorit
    • Berbasis session/database

πŸ”’ Keamanan

βœ… Password hashing menggunakan password_hash() βœ… SQL Injection prevention dengan prepared statements βœ… Session security βœ… XSS prevention βœ… CSRF token untuk form critical βœ… Input validation & sanitization βœ… Middleware authentication

πŸ“± Responsive Design

  • βœ… Mobile (320px - 767px)
  • βœ… Tablet (768px - 1023px)
  • βœ… Desktop (1024px+)
  • βœ… Sidebar collapse untuk mobile

🎨 Color Palette

  • Primary: Purple #9333ea β†’ #764ba2
  • Secondary: Pink #ec4899
  • Success: Green #10b981
  • Warning: Yellow #f59e0b
  • Danger: Red #ef4444
  • Info: Blue #3b82f6

πŸ“ž Support

Jika ada pertanyaan atau issue:

πŸ“ License

MIT License - Free to use untuk project komersial maupun personal

πŸ‘¨β€πŸ’» Developer

Developed with ❀️ by Alif Bima Pradana


Happy Coding! πŸš€

About

Website E-Commerce lengkap untuk Toko Fotocopy & ATK dengan desain modern dan fitur premium.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages