CEUS-MERKLE-AIRDROP-UI
This is the front-end for CEUS airdrop website.
Quick Start
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.json
for a full list ofscripts
you can run withyarn
)
Architecture
This project consists of three layers:
services
is where communication (via the NEAR RPC API) to smart contracts happen.state
is where the services are used and connected to react state managementcomponents
andpages
is where the view is created
Tests
Tests use React Testing Library and can be run with yarn test
.
Code Formatting
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.