Live site at upvotocracy.com
Upvotocracy is an open source reddit clone.
npm i
npm run dev
# fix elasticsearch connection errors:
sudo sysctl -w vm.max_map_count=262144
npm run deploy
node -p "require('btcpay').crypto.generate_keypair().getPrivate('hex')"
BTCPAY_URL=https://btcpay.profullstack.com/ BTCPAY_KEY=... BTCPAY_PAIRCODE=... node -e "const btcpay=require('btcpay'); new btcpay.BTCPayClient(process.env.BTCPAY_URL, btcpay.crypto.load_keypair(Buffer.from(process.env.BTCPAY_KEY, 'hex'))).pair_client(process.env.BTCPAY_PAIRCODE).then(console.log).catch(console.error)"