A simple web service that allows visitors to send Lightning payments. Built with Elixir and the Lexe API.
- Elixir 1.18.3
- OTP 27
- Lexe sidecar binary
The application uses a .env file for configuration. Copy env.example to .env and modify the values:
cp env.example .envRequired environment variables:
LEXE_SIDECAR_PATH: Path to the Lexe sidecar binary
-
Install dependencies:
mix deps.get
-
Start the application:
mix run --no-halt
The web server will start on port 8080. Visit http://localhost:8080 to see the tip page.
- Simple and clean UI for sending Lightning payments
- QR code generation for easy mobile scanning
- Real-time payment status updates
- Confetti animation on successful payment
- Automatic Lexe sidecar management
GET /- Serves the tip pagePOST /create_invoice- Creates a new Lightning invoiceGET /payment_status- Checks the status of a payment