mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
6ebbc5667d
- INDEXING_BLOCKS_AMOUNT = 0 disable indexing, INDEXING_BLOCKS_AMOUNT = -1 indexes everything - Show only available timespan in the mining page according to available datas - Change default INDEXING_BLOCKS_AMOUNT to 1100 Don't use unfiltered mysql user input Enable http cache header for mining pools (1 min) |
||
---|---|---|
.. | ||
.vscode | ||
cache | ||
src | ||
.gitignore | ||
mempool-config.sample.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tslint.json |
Setup backend watchers
The backend is static. Typescript scripts are compiled into the dist
folder and served through a node web server.
You can avoid the manual shutdown/recompile/restart command line cycle by using a watcher.
Make sure you are in the backend
directory cd backend
.
- Install nodemon and ts-node
sudo npm install -g ts-node nodemon
- Run the watcher
Note: You can find your npm global binary folder using
npm -g bin
, where nodemon will be installed.
nodemon src/index.ts --ignore cache/ --ignore pools.json