An open API service indexing awesome lists of open source software.

https://github.com/sanjeevirajanramajayam/vending-machine-react

A simple Vending Machine simulation built with React.js where users can view products, select items, and simulate payments without any back-end server.
https://github.com/sanjeevirajanramajayam/vending-machine-react

reactjs vending-machine

Last synced: 5 months ago
JSON representation

A simple Vending Machine simulation built with React.js where users can view products, select items, and simulate payments without any back-end server.

Awesome Lists containing this project

README

          

# 🛒 Vending Machine Simulation (React.js)

This is a simple **Vending Machine** simulation built with **React.js**. The app allows users to:

- View a list of available products
- Select a product to purchase
- Simulate payment by inserting coins
- Receive the selected product if the payment is correct
- View a summary of the transaction (product selected, total amount inserted, etc.)

## 🚀 Features

### User Features:
- View available products with names and prices
- Select a product to purchase
- Get the selected product if the payment is sufficient

### General Features:
- Simple, clean, and responsive UI using React components

## 📁 Tech Stack

- React.js
- React Hooks (useState, useEffect)
- CSS (for styling the UI)

## 💡 Purpose

This project is a basic simulation of a vending machine built entirely with React.js to demonstrate state management, user interaction, and component-based architecture in React.

## 🌱 How to Run

1. Clone the repository
2. Install dependencies:
```bash
npm install