๋ฆฌ์กํธ๋ก ๊ตฌํํ๋ ๋ธ๋ก์ฒด์ธ ์ด๋๋ฆฌ์ Dapp
์ด๋๋ฆฌ์ Dapp ํ๋ ์์ํฌ์ธ ํธ๋ฌํ๊ณผ ๋ฆฌ์กํธ ๋ฐ์ค๋ฅผ ํ์ฉํ์ฌ ์ด๋๋ฆฌ์ Dapp์ ๊ตฌํํ๋ ๋ฐฉ๋ฒ์ ์์๋ด ๋๋ค. ์๋ฐ์คํฌ๋ฆฝํธ๋ก ๊ตฌํํ๋ ํ๋ก ํธ์๋์ ์ด๋๋ฆฌ์ ์ค๋งํธ ์ปจํธ๋ํธ๊ฐ ์ด๋ป๊ฒ ๊ฒฐํฉ๋์ด ์ ํ๋ฆฌ์ผ์ด์ ์ด ๋๋์ง ํ์ตํ๊ฒ ๋ฉ๋๋ค.
์๊ฐ์ 955๋ช
๋์ด๋ ์ค๊ธ์ด์
์๊ฐ๊ธฐํ ๋ฌด์ ํ

- ๋ฏธํด๊ฒฐ
truffle migrate --network development ์ ๋ ฅํ๋๋
<s
EthereumdapptrufflereactKKKKK
ใป
1
534
1
- ๋ฏธํด๊ฒฐ
truffle init์ ํ๋ฉด truffle.jsํ์ผ์ด ๋ง๋ค์ด์ง์ง ์์ต๋๋ค.
์๋ ํ์ธ์ ์ ์๋ ๋๋ถ์ ์์ ์ ๋ฃ๊ณ ์์ต๋๋ค! ์ ์ง๋ฌธ์ ์ ๋ชฉ๊ณผ ๊ฐ์ต๋๋ค. ๋ค๋ฅธ ํ์ผ๋ค ํด๋๋ค์ ๋ง๋ค์ด์ง๋๋ฐ truffle.jsํ์ผ๋ง ๋ง๋ค์ด์ง์ง ์์ต๋๋ค. ํน์ ์์๋ฒ์ ์๋ truffle.jsํ์ผ์ด ๋ง๋ค์ด์ง์ง ์๋ ๊ฒ ์ธ๊ฐ
truffleEthereumdappreactSpielmann Kim๊น์ ์ข
ใป
1
351
2
- ๋ฏธํด๊ฒฐ
ํ์์์์๋ truffle unbox react๊ฐ ์๋ฉ๋๋ค ใ ใ
์ ๋ npm ๋ช ๋ น์ฐฝ์์ ์๋ํด๋ณด๋ ๊ฐ๋ฅํ์ต๋๋ค. ํน์ ๋ค๋ฅธ๋ถ๋ค๋ ๊ฐ์ ๋ฌธ์ ๊ฒช๊ณ ๊ณ์๋ค๋ฉด ์ด๋ ๊ฒ ํด๊ฒฐํด๋ณด์ธ์!
reacttruffleEthereumdappSpielmann Kim๊น์ ์ข
ใป
1
476
5
- ํด๊ฒฐ
ํ๋ฆฝํจ์ ๊ตฌํ๊ด๋ จ ์ฌํ ๋ฌธ์๋๋ฆฝ๋๋ค.
์๋ ํ์ธ์. ์ข์ ๊ฐ์ ๋๋ถ์ ๋ธ๋ก์ฒด์ธ์ ๋ํด ๋ง์ด ๋ฐฐ์ฐ๊ณ ์๋ ํ์์ ๋๋ค. ํ๋ฆฝํจ์ ๊ตฌํ์ ๋ณด๋ ๋ฐ ๋์๋ฅผ ํธ์์ ๋ธ๋ก๋๋ฒ๋ก ์ฃผ์ด ํ์ธ์ํค๋ ๊ฒ์ ์ดํดํ์ต๋๋ค. ๊ทธ๋ฐ๋ฐ, ๋ธ๋ก์ฒด์ธ์ ์ด์ฉํ๋ ์ฌ๋์ ๋ธ๋ก์ ๊ธฐ๋ก๋๋ ์ ๋ขฐ์ฑ์ผ๋ก ์ด๋ฌํ ํ๋ก์
EthereumreactdapptruffleS Kim
ใป
1
271
2
- ๋ฏธํด๊ฒฐ
๋ฆฌ์กํธ ์์์ ํธ๋ฌํ ์์กด์ฑ์ด ์์ต๋๋ค.
๋ฆฌ์กํธ ์์ ์ธ๋ฐ์ฑ ํ package.json์ dependencies์ truffle-contract๊ฐ ์์ ์์ต๋๋ค. scripts์๋ link-contracts๊ฐ ์๊ธฐ๋๋ฌธ์ ํ์์์์ npm run
dappreactEthereumtrufflealzmzl1012
ใป
1
244
1
- ๋ฏธํด๊ฒฐ
Mac ๊ฐ๋ฐ ํ๊ฒฝ ์ธํ ๊ด๋ จ ๋ฌธ์
์๋ ํ์ธ์ Mac ์ผ๋ก ๊ฐ์๋ฅผ ๋ฃ๊ณ ์์ต๋๋ค๋ง, ๊ฐ๋ฐ ํ๊ฒฝ ์ธํ ์ Window-build-tools ๋์ Mac ์์ ์ด๋ค ๋ชจ๋์ ์ค์นํด์ผ ํ๋์ง์?
dappEthereumtrufflereact์ ๋์
ใป
0
245
1
- ๋ฏธํด๊ฒฐ
์ฌ๋์ ์ด๋ํด์ฃผ์ธ์
๊ฐ์ ๊ด๋ จํด์ ์ง๋ฌธํ๊ณ ์ถ์๊ฒ ์์ต๋๋ค. ์ฌ๋์ ์ด๋ํด์ฃผ์ธ์!corykim0829@gmail.com
Ethereumtruffledappreact์์ ํ
ใป
0
224
1
- ๋ฏธํด๊ฒฐ
hello.say() is not a function
๋ฐฐํฌ2 ๋จ์์์ truffle console --network development ํ truffle(development)> var hello = HelloWorld.at("0x9876ff5b2729D2800f87852F7be329D3
reactdappEthereumtruffleMINSEONG HEO
ใป
2
289
3
- ๋ฏธํด๊ฒฐ
ํ ์์ ์์ HelloWorld.sol ์ปดํ์ผ์ด ์คํ๋์ง ์์ต๋๋ค.
''' pragma solidity ^0.4.24; contract HelloWorld { string public greeting; constructor(string _greeting) public{ <p
reactEthereumtruffledapp์ตํ์
ใป
0
307
2
- ๋ฏธํด๊ฒฐ
deploy์๋ฌ์ ๋๋ค
truffle(development)> var hello = HelloWorld.at("0x9d9f101b4c88ed82e347cfd14cbfcb3df00886a4") TypeError: Cannot read property 'match' of
trufflereactdappEthereum์ฃผ๋ ธ
ใป
0
198
1






