Aplikasi Web untuk manajemen Display Produk dengan penyimpanan di Google Drive.
- Login - Autentikasi dengan NIK dan Password
- Display Records - Melihat semua data display dengan card list
- Advanced Search - Filter berdasarkan negara dan flavor
- Tambah Data - Menambah record display baru
- Create Display - Upload foto dan input kode produksi
- Google Drive Integration - Penyimpanan foto di Google Drive (GRATIS)
- Buka https://console.cloud.google.com/
- Login dengan akun Google Anda
- Klik "Select a project" > "New Project"
- Nama project:
AppDisplay> Create
- Di menu sebelah kiri, pilih "APIs & Services" > "Library"
- Cari "Google Drive API"
- Klik "Enable"
- Pergi ke "APIs & Services" > "Credentials"
- Klik "Create Credentials" > "API Key"
- Copy API Key tersebut
- Klik "Create Credentials" > "OAuth client ID"
- Jika diminta configure consent screen:
- User Type: External > Create
- App name:
AppDisplay - User support email: (email Anda)
- Developer contact: (email Anda)
- Save and Continue (skip semua optional)
- Add test user: (email Anda)
- Kembali ke Credentials > Create OAuth client ID
- Application type: "Web application"
- Name:
AppDisplay Web - Authorized JavaScript origins:
https://hitographic.github.iohttp://localhost:5500
- Authorized redirect URIs:
https://hitographic.github.io/AppDisplay/
- Create dan copy Client ID
- Buka Google Drive
- Buat folder baru:
AppDisplay_Data - Klik kanan folder > Share > Anyone with link > Viewer
- Copy folder ID dari URL (bagian setelah
/folders/)
Edit file js/config.js:
const CONFIG = {
GOOGLE_CLIENT_ID: 'PASTE_YOUR_CLIENT_ID_HERE',
GOOGLE_API_KEY: 'PASTE_YOUR_API_KEY_HERE',
GOOGLE_FOLDER_ID: 'PASTE_YOUR_FOLDER_ID_HERE',
// ...
};| NIK | Password |
|---|---|
| 50086913 | Ind0f00d25 |
| 12345678 | password123 |
VALID-DISPLAY/
├── index.html # Halaman Login
├── records.html # Halaman Display Records
├── create-display.html # Halaman Create Display
├── css/
│ └── style.css # Stylesheet
├── js/
│ ├── config.js # Konfigurasi
│ ├── auth.js # Autentikasi
│ ├── storage.js # Penyimpanan (Local + Google Drive)
│ ├── login.js # Login page script
│ ├── records.js # Records page script
│ └── create-display.js # Create display script
├── assets/
│ └── logo.png # Logo (opsional)
└── README.md # Dokumentasi
- Push semua file ke repository GitHub
- Buka Settings > Pages
- Source: Deploy from a branch
- Branch: main / (root)
- Save
Aplikasi akan tersedia di: https://hitographic.github.io/AppDisplay/
- Login: Masukkan NIK dan Password
- Display Records: Lihat semua data, gunakan Advanced Search untuk filter
- Tambah Data: Klik tombol "Tambah Data", isi form popup
- Create Display: Upload foto untuk setiap kategori, isi kode produksi
- Simpan Sementara: Menyimpan progress tanpa meninggalkan halaman
- Simpan Semua: Menyimpan dan kembali ke Display Records
- HTML5 / CSS3 / JavaScript (Vanilla)
- Google Drive API v3
- Google Identity Services
- Font Awesome Icons
- LocalStorage untuk offline support