Website e-commerce static menggunakan HTML, CSS, dan JavaScript untuk TPM BNCC.
Project ini merupakan implementasi dari Mini Project 3 yang membuat website e-commerce static dengan fitur CRUD (Create, Read, Update, Delete) untuk manajemen produk. Website ini menggunakan Fetch API untuk mengambil data dari FakeStore API (https://fakestoreapi.com/).
- Menampilkan Data Produk - Fetch GET request untuk mengambil semua produk dari API
- Menambahkan Produk - Fetch POST request untuk menambah produk baru
- Memperbarui Produk - Fetch PUT request untuk update data produk
- Menghapus Produk - Fetch DELETE request untuk hapus produk
- Error Handling - Menampilkan pesan error jika API request gagal
- Loading State - Menampilkan loading indicator saat fetch data
- Inter: Google Fonts
- Spline Sans: Google Fonts
- 36px (title)
- 32px (sub title)
- 16px (navbar, add product button, product title, paragraph)
- 20px (second title, input title)
#DBF0FD- Primary#7ACCFF- Secondary#8FCEF5- Title#4986DB- Title#616161- Title#000000- Sub Title#4B5563- Text
- Figma Design: TPM Mini Case 2
- FakeStore API: https://fakestoreapi.com/
- Video Panduan GitHub: YouTube
- Clone repository ini
- Buka file
index.htmldi browser - Pastikan koneksi internet aktif untuk mengakses FakeStore API
GET /products- Mengambil semua produkGET /products/:id- Mengambil satu produk berdasarkan IDPOST /products- Menambah produk baruPUT /products/:id- Update produkDELETE /products/:id- Hapus produk