E-commerce store with bitcoin payments
Steps
- Download and setup bitcoin. Sync to latest. To run local, we need testnet.
- Download and setup MongoDB
- Create a Google Books API key
- Configure shell scripts (included) properly based on your folder structure
- Run rundaemon.sh. This will start bitcoin, with walletnotify and blocknotify
- start mongo
- start api server. cd to api and run 'nodemon'
- start web project. cd to web and run 'npm run dev'
to test.
- open web browser and navigate to localhost:8080
- select a book
- select 'pay with crypto' tab.
- amount and payment address is shown. Send required amount of bitcoins using a testnet to the given address.
- UI automatically updates once payment is received.