Skip to content

Liongrass/bepsi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

21UP

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

The 21UP vending machine

This guide was written for Debian 12.

Prerequisites:

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 20

Requires Yarn

npm install --global yarn

Install:

git clone https://github.com/Liongrass/bepsi.git
cd bepsi
yarn

Copy the example environment and fill out the parameters:

cp .env.example .env
nano .env

To test run:

yarn start

Run

To 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 startup

pm2 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 monit

To see logs:

pm2 logs 21UP

About

Code powering the 21UP machine

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%