Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.4 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.4 KB

Getting Started with NEAR Todo App

This project was bootstrapped with Create React App.

Project Structure

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.

Running this project

In the root project directory, run:

npm install

Installs all the project dependencies.

npm run build

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.\

npm run deploy

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

npm start

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

npm run test

This tests the contract code and also the frontend code

Learn More

You can learn more in the NEAR official docs.

To learn React, check out the React documentation.