Monorepository for the Aventus Network Services ecosystem dApps.
- Typescript
- Linting with ESLint
- Formatting with Prettier
- Linting, typechecking and formatting on by default using
huskyfor commit hooks - Testing with Jest and
react-testing-library
Keep .env files in the package directories. For convenience there are sample env files in docker-config folder (in root's directory) with some defaults. Set your own listed hidden secrets, e.g. INFURA_SECRET for Staking DApp
Root repo scripts for development convenience:
Executes any script on abe-ui package, e.g. yarn abe-ui dev to start dev server in watch mode and hot reloading for staking dApp
Executes any script on abe-server package, e.g. yarn abe-server dev to start dev server in watch mode and hot reloading for staking dApp
Executes any script on abe-indexer package, e.g. yarn abe-indexer dev to start dev server in watch mode and hot reloading for staking dApp
Executes any script on abe-balances package, e.g. yarn abe-balances dev to start dev server in watch mode and hot reloading for staking dApp
Heads up:
- pre commit hook triggers priettier and linter
- pre push hook triggers TS type check
In case of updating libraries which are common to multiple projects within this monorepo (e.g. Typescript, Polkadot API) remember to update versions in all package.json files (not only in DApps, but also in shared packages) to maintain consistent runtime versions.
See AvN Dapps deployment instructions
.env files are kept in each package/app/<app-name> directory. When adding new environement variables, please don't forget to update both ansible templates and docker-config files!