janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.52k stars 1.14k forks source link

Please provide instructions for windows installations #114

Closed Relaxo143 closed 5 years ago

Relaxo143 commented 5 years ago

I was able to install previous version with just npm install and npm start, but since the new .env was introduced, things seem to be different. It'd be great if you could provide instructions for windows and maybe even include them in the readme file.

tyzoo commented 5 years ago

Run npm install

Rename ".env-sample" to ".env"

Remove # and set the following variables in .env BTCEXP_BITCOIND_HOST=localhost BTCEXP_BITCOIND_PORT=8332 BTCEXP_BITCOIND_USER= BTCEXP_BITCOIND_PASS=

This should get you rolling

Relaxo143 commented 5 years ago

Run npm install

Rename ".env-sample" to ".env"

Remove # and set the following variables in .env BTCEXP_BITCOIND_HOST=localhost BTCEXP_BITCOIND_PORT=8332 BTCEXP_BITCOIND_USER= BTCEXP_BITCOIND_PASS=

This should get you rolling

Thanks for the reply. I can't have a file with just ".env" so I renamed it to "env.env", however I get this error:Running RPC Explorer for Bitcoin Connecting via RPC to node at 127.0.0.1:8332 Error for RPC command 'getnetworkinfo': Error: no auth mechanism defined Error 923grf20fge: Error: no auth mechanism defined, error json: {"cause":{},"isOperational":true}

I specified the credentials in the .env fields are removed the #

tyzoo commented 5 years ago

Are you sure your RPC user/pass are correct? I created a .bat file to launch the bitcoind server with RPC credentials.

StartBitcoind.bat: @echo off

start "bitcoind" "C:\Program Files\Bitcoin\daemon\bitcoind.exe" -datadir=C:\BitcoinCore -txindex=1 -rpcuser=USERNAME -rpcpassword=PASSWORD

Edit- You should be able to create a file name with .env

Relaxo143 commented 5 years ago

Screenshot_1 I'm sure they are correct. I copied them from the .conf file itself.

d3spwn commented 5 years ago

Have you tried installing it with Windows Subsystem for Linux?

Relaxo143 commented 5 years ago

The .env isn't working for me for some reason so I just start it with btc-rpc-explorer and arguments. Thanks, everyone!