Skip to content

Repository files navigation


Vending Machine App

Buy your favorite products easily with virtual vending machine.

Explore the docs »

. Report Bug . Request Feature

About The Project

Welcome to the Vending Machine App! This project allows users to view available products, insert money, make purchases, and view transaction history. Admins can manage products easily through the admin panel with full CRUD functionality.

Built With

This app was built with these technologies:

  • Next.js (App Router)
  • Tailwind CSS
  • React Hook Form
  • Yup
  • SweetAlert2
  • JSON Server (Fake API)

Prerequisites

Before installation, make sure you have:

json-server installed :

  • npm install --save-dev json-server

Installation

Clone the Repository:

Install Dependencies:

  • npm install

Start JSON Server:

  • npm run json-server

Run the Development Server:

Usage Guide

  • Admin Panel (CRUD Features)
  • Klik tombol "Dashboard Admin" yang tersedia di halaman utama.

Di halaman admin:

  • Create Product: Klik tombol "Add Product", isi form produk baru.
  • Untuk mengisi gambar produk, gunakan path gambar dari folder /public/image, contoh:/image/sprite.jpg
  • Edit Product: Klik tombol "Edit" pada produk yang ingin diubah.
  • Sama seperti saat create, saat edit gambar produk, gunakan path seperti: /image/sprite.jpg
  • Delete Product: Klik tombol "Delete" untuk menghapus produk.

Membeli Produk

  • Di halaman Home, sebelum membeli produk, pastikan Anda sudah mengisi uang.
  • Klik tombol button yang berada di sebelah kanan halaman.
  • Setelah memasukkan nominal uang, Anda bisa langsung klik tombol "Beli" di produk yang diinginkan.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages