This project was bootstrapped with Create React App.
This project has contract
folder.\ as submodule. This is where your smart contract code lives. Root folder has the project main files which was generated by create-react-app.
In the root project directory, run:
Installs all the project dependencies.
Builds the smart contract code and compiles it to WASM, making it ready for deployment.
Builds the app frontend for production to the build
folder.\
Before you run this command, goto the contract/deploy.sh
folder.\ and replace the <your-example-contract.testnet-account-id> with your testnet accountId
Then login to the testnet account using NEAR CLI to get account full access key
Then run the command
The compiled WASM file will be deployed to the NEAR testnet
Before starting the project, go to src/index.ts
and insert your <your-example-contract.testnet-account-id> in the CONTRACT_ADDRESS variable. Then run npm start.s
This tests the contract code and also the frontend code
You can learn more in the NEAR official docs.
To learn React, check out the React documentation.