a selfhostable cryptocurrency payment processor
- Node.js v22.x+, Bun 1.2.x+
- Bitcoin Core v28+
- Git
-
Clone the repository
git clone https://github.com/frolleks/payflux.git
-
Navigate to the project directory
cd payflux -
Install dependencies
bun install
-
Start Bitcoin Core
Ensure that your Bitcoin Core node is running and fully synchronized. When you are running this for development purposes, it is recommended to run Bitcoin Core in the test network.
bitcoind -testnet4 -daemon -rpcuser=yourusername -rpcpassword=yourpassword -rpcport=8333
-
Set up environment variables
Create a
.envfile in the root directory and add the following variables:BITCOIN_HOST= BITCOIN_PORT= BITCOIN_USER= BITCOIN_PASS= WEBHOOK_SECRET= MNEMONIC= # optional, for generating Ethereum wallet addresses and enabling ETH payments ETHERSCAN_API_KEY= # optional, for enabling ETH payments
Replace the values with your Bitcoin Core configuration.
-
Start the development server
bun --filter "*" dev -
Open your browser and navigate to
http://localhost:5173to access the application.