(BlockChain) Solidity를 이용한 간단하게 Bakery 예제
작업 폴더 생성 front / back 폴더생성 각 폴더에 필요로 하는 라이브러리 및 init 설정 ( vscode Terminal ) front yarn create react-app front cd front yarn add web3 back cd back npm init -y npm i truffle npm i -D prettier-plugin-solidity npx truffle init useWeb3.js 생성 Custom Hook 생성 solidity 파일 생성 ( Bakery.sol ) // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract Bakery { mapping(address => uint) public breads; f..
2023.03.08