Truffle [트러플]
트러플은 이더리움 기반의 DApp을 쉽게 개발(스마트 컨트랙트 개발, 컴파일, 배포, 테스팅)할 수 있도록 도와주는 프레임워크 입니다.
JS를 기반으로 어플리케이션을 개발하면 참고할 사이트들은 하단에 남겨 놓겠습니다.
설치할 것
(1) Node.js - https://nodejs.org/ko/ 에서 안정적인 이전 버전 or 최신 버전 설치
(2) VS code - https://code.visualstudio.com/ 에서 설치
(3) Ganache & Truffle - https://www.trufflesuite.com/ganache 에서 설치 하거나 Node.js 설치 후 아래와 같이 cmd창 명령어로 설치
// 설치 명령어
npm install -g ganache-cli
// 설치 후 버전 체크 (정상 설치되면 버전 output)
ganache-cli --version
// Truffle 설치
npm install -g truffle
// Truffle 버전 체크
truffle version
시작
원하는 경로에 예제 폴더를 생성하고 초기화를 진행해줍니다.
mkdir dapp-module
cd dapp-module
truffle init
그러면 폴더에 초기 생성되는 세팅은 다음과 같습니다.
이제 web3 발 담가보도록 하겠습니다.
참고 사이트 목록
Home - Truffle Suite
SIGN UP FOR THE TRUFFLE MAILING LIST Sign up today to be a member of the Truffle mailing list. You'll be added to our low volume mailing list which we'll use to communicate future changes, development ideas and allow you to shape Truffle's development.
trufflesuite.com
web3.js - Ethereum JavaScript API — web3.js 1.0.0 documentation
© Copyright 2016, Ethereum Revision 59b657b8.
web3js.readthedocs.io
Solidity — Solidity 0.8.18 documentation
1. Understand the Smart Contract Basics If you are new to the concept of smart contracts we recommend you to get started by digging into the “Introduction to Smart Contracts” section, which covers: 2. Get to Know Solidity Once you are accustomed to the
docs.soliditylang.org
'Coding(코딩) > 웹 3(Web 3)' 카테고리의 다른 글
[Web 3] 웹3 세계에서 필수적인 디파이(DeFi) 개념 정리 (1) | 2023.05.30 |
---|---|
솔라나 Saga 폰 런칭 이벤트 Part 1: Saga 폰 제작 배경 (0) | 2023.05.04 |
OpenAI가 쏘아 올린 검색 엔진 전쟁: ChatGPT vs. bing (0) | 2023.04.06 |
[Web 3] 듄 애널리틱스(Dune Analytics) 소개 (3) | 2022.12.09 |
[Web 3] NFT 발행하기 전 IPFS에 대해 이해해보자. (0) | 2022.12.07 |