Skip to content

A to-do list smart contract app using the Create React App and the NEAR JavaScript SDK.

Notifications You must be signed in to change notification settings

kasodon/near-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A to-do list smart contract app using the Create React App and the NEAR JavaScript SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published