To run this project locally:
- Prerequisites: Make sure you have Node.js ≥ 12 installed (https://nodejs.org), then use it to install [yarn]:
npm install --global yarn
(or justnpm i -g yarn
) - Install dependencies:
yarn install
(or justyarn
) - Run the local development server:
yarn dev
(seepackage.json
for a full list ofscripts
you can run withyarn
)
Now you'll have a local development environment backed by the NEAR TestNet! Running yarn dev
will tell you the URL you can visit in your browser to see the app.
yarn dev
yarn build:web
yarn build:contract:debug
OCT_NETWORK (default is testnet
)
OCT_RELAY_CONTRACT_NAME (default is dev-1616819063071-1140774
or neardev/dev-account
)
OCT_TOKEN_CONTRACT_NAME (default is dev-1615435740118-2637667
)