This is the front-end for app.ref.finance
To run this project locally:
- Prerequisites: Make sure you've installed [Node.js] ≥ 12
- Install dependencies:
yarn - Run the local development server connected to
testnet:yarn start(seepackage.jsonfor a full list ofscriptsyou can run withyarn)
This project consists of three layers:
servicesis where communication (via the NEAR RPC API) to smart contracts happen.stateis where the services are used and connected to react state managementcomponentsandpagesis where the view is created
Tests use React Testing Library and can be run with yarn test.
This project uses Prettier to create consistently styled code.
Prettier can be installed to auto-format on save for most editors. You can also run
yarn prettier to check for styling errors and yarn prettier:fix to fix styling errors