mempool/backend
2022-02-03 23:21:19 -08:00
..
.vscode
cache
src
.gitignore
mempool-config.sample.json Update README, reference config files and Docker with the new SOCKS config 2022-02-03 23:21:19 -08:00
package-lock.json Add socks-proxy-agent dependency 2022-02-03 23:14:56 -08:00
package.json Add socks-proxy-agent dependency 2022-02-03 23:14:56 -08:00
README.md
tsconfig.json Allow synthetic default imports due to the socks library 2022-02-03 23:16:30 -08:00
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.

  1. Install nodemon and ts-node
sudo npm install -g ts-node nodemon
  1. 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