Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Nov 21, 2022
1 parent dc5e395 commit a755d49
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.mpw.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RPC_CREDENTIALS=masternode_test:p
RPC_CREDENTIALS=name:password
ALLOWED_RPCS=listmasternodes,relaymasternodebroadcast,getbudgetprojection,mnbudgetrawvote,getbudgetinfo
PORT=3000
RPC_PORT=51473
Expand Down
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RPC_CREDENTIALS=masternode_test:p
ALLOWED_RPCS=help,listmasternodes
RPC_CREDENTIALS=name:password
ALLOWED_RPCS=help,getbalance
PORT=3000
RPC_PORT=51473
TESTNET_RPC_PORT=51463 # Remove if you don't want testnet
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# PivxNodeController
http server used to control a node remotely
Simple http server used to perform RPC calls to a Bitcoin based node

# HOW TO RUN

First, download the dependencies with
```bash
npm i
```
Then, copy the example environment file with
```bash
cp .env.sample .env
```
If you are setting up a node for MPW, copy `.env.mpw.sample` instead.
Edit the file by chaning the credentials using the ones you set on your crypto node.
Finally, run the server with
```bash
npm run start
```

0 comments on commit a755d49

Please sign in to comment.