Skip to content

Rari-Capital/rari-dApp-next

Repository files navigation

Rari dApp · Tests · Coverage Status

Rari Capital's Web3 Portal.

Scripts

  • Run npm run dev to start the development server.
  • Run npm run build to build a production bundle
  • Run npm run bump-rari-components to automatically install the latest version (i.e. most recent commit hash) of rari-components and update package.json.
  • Run npm run typecheck to typecheck

Environment

  • Set NEXT_PUBLIC_USE_MOCKS to true to test the dapp with mock objects (e.g. NEXT_PUBLIC_USE_MOCKS=true npm run dev).
    • Currently, this env var is only used in the Turbo code — Ctrl+F for process.env.NEXT_PUBLIC_USE_MOCKS to see the specific use sites.

Requirements

  • node: v14.17.0
  • npm: v6.14.13

Notes:

What are the "compiled" folders in src/static?
  • The src/static/compiled folder has misc. files that are auto generated from scripts like: rari-tokens-generator
  • You can generate these files using npm install.
  • These files are gitignored so do not worry about trying to commit them!