Live Demo visit: NearestContact
This was developed after learning this tutorial building a CRUD dApp and NEAR Development 101 program, by deacde
The application consist of two distinct layers:
- Smart contract (in web2 we may refer to this as server-side or back-end)
- Web app (in web2 we may refer to this as client-side or front-end)
Contracts: /contact-list-contract/
- to install dependencies
cd contact-list-contract && yarn
- after that run tests -
yarn test
- compile the contract -
yarn asb
- deploy the contract -
near deploy --accountId=your_account.testnet --wasmFile=build/release/contact-list-contract.wasm
Web App Tests: /contact-list-near/
- to install dependencies
cd contact-list-near && yarn
- to start the server -
yarn start
- If you deploy the contract, make sure to edit the
CONTRACT_NAME
found incontact-list-near/src/utils/config.js
to match your deployed contract. - You must be logged in to interact with the app. If you don't have a NEAR wallet, click here to make one.