This is the monorepo for all the Notional finance code. It is split into two main areas:
apps/
: includes all deployed Cloudflare workers, websites and Google Cloud Functions.packages/
: includes library code used between different applicationscommon
: UI components used across the appcontracts
: smart contract ABIs and typechain artifactscore-entities
: logic to maintain data synchronization with the blockchainmulticall
: utility for making batch calls to the blockchainnotionable
: frontend UI logicrisk-engine
: risk calculations for accountsshared
: shared website componentsfeatures
: shared website componentstransaction
: blockchain transaction building componentsutils
: generic constants and utilities
- Install Dependencies from the root:
yarn install
- Serve the development website:
yarn nx serve web
- You will need to create a
web/.env
file
- You will need to create a
- The site will be served at http://localhost:3000
NX_CONTACT_EMAIL=support@notional.finance
NX_APP_URL=http://localhost:3000
NX_SUBGRAPH_API_KEY=
NX_REGISTRY_URL=http://registry-dev.notional.finance