Add mempool-config.json to .gitignore, update sample, update README
This commit is contained in:
parent
9df5024856
commit
e95b90b857
16
README.md
16
README.md
@ -35,6 +35,12 @@ rpcpassword=71b61986da5b03a5694d7c7d5165ece5
|
|||||||
txindex=1
|
txindex=1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## mempool config
|
||||||
|
Make a copy of the sample config and edit it
|
||||||
|
```
|
||||||
|
cp mempool-config.sample.json mempool-config.json
|
||||||
|
```
|
||||||
|
|
||||||
Edit mempool-config.json to add your Bitcoin node RPC credentials:
|
Edit mempool-config.json to add your Bitcoin node RPC credentials:
|
||||||
```
|
```
|
||||||
"BITCOIN_NODE_HOST": "192.168.1.5",
|
"BITCOIN_NODE_HOST": "192.168.1.5",
|
||||||
@ -67,16 +73,6 @@ Initialize database structure:
|
|||||||
mysql -u mempool -p mempool < mariadb-structure.sql
|
mysql -u mempool -p mempool < mariadb-structure.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit mempool-config.json to add your MySQL/MariaDB credentials:
|
|
||||||
|
|
||||||
```
|
|
||||||
"DB_HOST": "127.0.0.1",
|
|
||||||
"DB_PORT": 3306,
|
|
||||||
"DB_USER": "mempool",
|
|
||||||
"DB_PASSWORD": "mempool",
|
|
||||||
"DB_DATABASE": "mempool",
|
|
||||||
```
|
|
||||||
|
|
||||||
## mempool backend
|
## mempool backend
|
||||||
|
|
||||||
Create an initial empty cache and start the app:
|
Create an initial empty cache and start the app:
|
||||||
|
3
backend/.gitignore
vendored
3
backend/.gitignore
vendored
@ -1,5 +1,8 @@
|
|||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# production config
|
||||||
|
mempool-config.json
|
||||||
|
|
||||||
# compiled output
|
# compiled output
|
||||||
/dist
|
/dist
|
||||||
/tmp
|
/tmp
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"ENV": "dev",
|
"ENV": "dev",
|
||||||
"DB_HOST": "localhost",
|
"DB_HOST": "localhost",
|
||||||
"DB_PORT": 8889,
|
"DB_PORT": 3306,
|
||||||
"DB_USER": "",
|
"DB_USER": "mempool",
|
||||||
"DB_PASSWORD": "",
|
"DB_PASSWORD": "mempool",
|
||||||
"DB_DATABASE": "",
|
"DB_DATABASE": "mempool",
|
||||||
"HTTP_PORT": 3000,
|
"HTTP_PORT": 3000,
|
||||||
"API_ENDPOINT": "/api/v1/",
|
"API_ENDPOINT": "/api/v1/",
|
||||||
"CHAT_SSL_ENABLED": false,
|
"CHAT_SSL_ENABLED": false,
|
||||||
@ -16,8 +16,8 @@
|
|||||||
"DEFAULT_PROJECTED_BLOCKS_AMOUNT": 3,
|
"DEFAULT_PROJECTED_BLOCKS_AMOUNT": 3,
|
||||||
"KEEP_BLOCK_AMOUNT": 24,
|
"KEEP_BLOCK_AMOUNT": 24,
|
||||||
"BITCOIN_NODE_HOST": "localhost",
|
"BITCOIN_NODE_HOST": "localhost",
|
||||||
"BITCOIN_NODE_PORT": 18332,
|
"BITCOIN_NODE_PORT": 8332,
|
||||||
"BITCOIN_NODE_USER": "",
|
"BITCOIN_NODE_USER": "",
|
||||||
"BITCOIN_NODE_PASS": "",
|
"BITCOIN_NODE_PASS": "",
|
||||||
"TX_PER_SECOND_SPAN_SECONDS": 150
|
"TX_PER_SECOND_SPAN_SECONDS": 150
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user