0.0.7 • Published 6 years ago
dvt-bitserve v0.0.7
bitserve
Bitdb Microservice
An API Endpoint + Web Query UI for BitDB
How it works
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
Prerequisites
You must have the following installed.
- DeVault Full Node: Any DVT node implementation
- Bitdb Node: Bitdb is a universal database that autonomously synchronizes with DeVault https://github.com/devaultcrypto/bitd
Install
Clone the Bitserve repository:
git clone https://github.com/devaultcrypto/bitserve.git && cd bitserveInstall dependencies:
npm installConfigure Bitserve:
You can configure the service with .env, just copy .env.example to .env and edit it to match your system.
cp .env.example .envTo 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 .envRunning as a daemon
Install PM2 using NPM
npm install pm2 -gStart bitserve
pm2 start index.js --name="Bitserve"0.0.7
6 years ago