vending machine
this app could run in two mod
- run via docker:
docker-compose up -d --build
or go run main.go
it will serve app on 8000 port
using postman file located doc directory you can make request
Instead of using restAPI you can use command line interface for call app functions
build app using below command
go build
Print available machine list
./vending-machine machines
Buy a coca
./vending-machine coca MACHINE_NAME COIN(int)
Buy a coffee
./vending-machine coffee MACHINE_NAME COIN(int)