A Point of Sale (POS) application built with Vite, React, and TypeScript that uses the Bitcoin Lightning Network for payments.
Go through the code (there are TODO hints), initialize a Breez SDK - Nodeless instance and use the Breez SDK to manage payments.
- Create and manage items in the inventory
- Add items to basket
- Local storage for item persistence
- Generate BOLT11 Lightning invoices for checkout
- Real-time payment detection
- Responsive design with Tailwind
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile in the project root with your Breez SDK credentials:
VITE_BREEZ_API_KEY=your_breez_api_key_here
VITE_BREEZ_MNEMONIC=your_breez_mnemonic_here
- Start the development server:
npm run dev
- Go to "Manage Items" to add items to your inventory
- Navigate to the Store page to view items and add them to your basket
- Proceed to checkout to generate a Lightning invoice
- Pay the invoice using any Lightning wallet
- Receive confirmation when payment is processed
- Vite
- React
- TypeScript
- React Router
- Tailwind
- Breez SDK (@breeztech/breez-sdk-liquid)
- Local Storage for data persistence
This application uses the Breez SDK to connect to the Lightning Network for payment processing. When a customer checks out, a BOLT11 invoice is generated that can be paid with any Lightning wallet.
VITE_BREEZ_API_KEY: Your Breez SDK API keyVITE_BREEZ_MNEMONIC: Your Breez SDK mnemonic for wallet authentication
To build the application for production:
npm run build
MIT