Bitcoin-only fork of DCTRL's infamous Bepsi Machine
This code lives in the 21UP vending machine and does one thing:
- Accept sats, dispense cans
This guide was written for Debian 12.
sudo apt install git make build-essential
Requires Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
\. "$HOME/.nvm/nvm.sh"
nvm install 20Requires Yarn
npm install --global yarngit clone https://github.com/Liongrass/bepsi.git
cd bepsi
yarnCopy the example environment and fill out the parameters:
cp .env.example .env
nano .envTo test run:
yarn startTo persist 21UP and make it run on startup:
cd bepsi
npm install -g pm2
pm2 start index.js --name 21UP --exp-backoff-restart-delay=100
pm2 startuppm2 will then issue you a command that will generate and install a systemd file for your system. Run this command and restart your machine to test this.
Useful commands:
pm2 list
pm2 monitTo see logs:
pm2 logs 21UP