Bitdb Microservice
An API Endpoint + Web Query UI for BitDB
This project contains:
- BitDB Microservice API Endpoint: An HTTP API Endpoint to your BitDB
- BitDB Query Web UI: As seen in https://bitdb.fountainhead.cash/explorer
You must have the following installed.
- Bitcoin Full Node: Any BCH node implementation
- Bitdb Node: Bitdb is a universal bitcoin database that autonomously synchronizes with Bitcoin https://github.com/fountainhead-cash/bitd
Clone the Bitserve repository:
git clone https://github.com/fountainhead-cash/bitserve.git && cd bitserve
Install dependencies:
npm install
Configure Bitserve:
You can configure the service with .env, just copy .env.example to .env and edit it to match your system.
cp .env.example .env
To enable/disable rate-limiting change ratelimit_disabled
to either 1 for off or 0 for on. ratelimit_requests
is enforced in a 60-second window. same_domain_sockserve
should be set to 1 only if your webserver set to serve sockserve's /channel page and /s/ API endpoint on the same domain as bitserve.
vim .env
Install PM2 using NPM
npm install pm2 -g
Start bitserve
pm2 start index.js --name="Bitserve"
- Chat: Join fountainhead.cash Telegram channel, ask questions, share your projects, etc. Open chat