- yarn install
- cp
.env.goerly-fork.sample
or.env.mainent-fork.sampleo
to.env
- Provide path envs variables (by default they're ok)
- from repo root run
make install_anvil
. It compiles anvil locally and but bin files intothird_party
folder. - Provide into Makefile your EL RPC url. In current example - infura url. But you can switch to any you want
make run_anvil_mainnet
ormake run_anvil_goerly
for running needed fork network locally- For running, debugging code in WebStorm
- For running from console, look at package.json
- "build": "tsc --build",
- "start": "node dist/src/index.js",
- "start:dev": "ts-node src/index.ts",
- "format": "prettier --write "src//*.ts" "test//*.ts"",
- "lint": "eslint "{src,apps,libs,test}/**/*.ts" --fix"
Summary:
- The entry point into app is
src/index.ts::main
- The repository is written with the clean code principle illustrated by Robin Martin at `Clean Architecture in Chapter 13
- Omnibuses locate here
src/handlers/vote/mocks/2023_06_20.ts
for future development, we can make a copy or extend or etc.