This contains the finished code for the tutorial on building a CRUD dApp
The application will 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: /todos-crud-contract/
- install dependencies
cd todos-crud-contract && yarn - run tests -
yarn test - compile the contract -
yarn build - deploy the contract -
yarn deploy
App Tests: /todos-crud-web/
- install dependencies
cd todos-crud-web && yarn - start the server -
yarn start
- If you deploy the contract, make sure to edit the
CONTRACT_NAMEfound intodos-crud-web/src/config.jsto 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.