## ð Instructions to run & upload on IPFS:
0. **Install node v12.10.0:**
</br>**```curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash```
</br>```nvm install 12.10.0```
</br>```nvm alias default 12.10.0```
</br> Restart Terminal**
1. **Install Truffle:**
</br>**```npm i -g truffle```**
2. **Install IPFS:**
</br>**```npm i -g ipfs```
Restart Terminal**
3. **Run IPFS Node:**
</br>**```jsipfs daemon```**
4. **Get project directory (in new terminal window):**
</br>**```git clone https://github.com/dappuniversity/nft_masterclass_1.git```**
5. **Enter project directory and install dependecies:**
</br>**```cd nft_masterclass_1 && npm i```**
6. **Enter truffle developer mode:**
</br>**```truffle develop```**
7. **Migrate contracts (locally):**
</br>**```migrate --reset```**
8. **Mint NFTs (locally):**
</br>**```exec src/backEnd/scripts/mint.js```**
9. **Migrate contracts on public network (in this case Kovan):**
</br>**a) Rename .env_example to .env and fill accordingly)
</br>b) Get Kovan ETH i.e. from https://faucet.kovan.network/ or https://gitter.im/kovan-testnet/faucet
</br>c) Off VPN(if got and ON), then type:
</br>```migrate --reset --network kovan```**
10. **Mint NFTs on public network (in this case Kovan):**
</br>**```exec src/backEnd/scripts/mint.js --network kovan```**
**11. Run dApp:**
</br>**```npm start```**
12. **Enter dApp in browser:**
</br>**```localhost:3000```**
13. **Connect to the dApp:**
</br>**If running publicly set MetaMask network to Kovan.
</br>If running locally set MetaMask network to (Settings>Networks>Add Network):**
</br>![MetaMask setting](https://i.gyazo.com/b34e8bec896844352e70a7382e1f18d4.png)
## ð Instructions to publish on IPFS:
0. **Run IPFS Node (if not running already)**
</br>**```jsipfs daemon```**
1. **Create build directory (inside project directory)**
</br>**```npm run build```**
2. **Publish on IPFS**
</br>**```jsipfs add -r build```**
3. **Copy the latest generated hash and paste into the place of hash below:**
</br>**https://ipfs.io/ipfs/hash**
</br>**For the first time may take a while to load dApp**
4. **Create Human readable link**
</br>**[Use this site](https://bitly.com/)**
## ð Instructions to publish on Surge:
0. **Create build directory (inside project directory):**
</br>**```npm run build```**
1. **Enter build directory:**
</br>**```cd build```**
1. **Install Surge:**
</br>**```npm i -g surge```**
2. **Publish on Surge:**
</br>**```surge```**
</br>**...and follow the instructions**
没有合适的资源?快使用搜索试试~ 我知道了~
RaribleNFT:像稀有品这样的NFT项目
共87个文件
json:38个
jpg:20个
js:18个
5星 · 超过95%的资源 需积分: 50 35 下载量 51 浏览量
2021-03-13
08:25:06
上传
评论 5
收藏 11.38MB ZIP 举报
温馨提示
:page_with_curl: 在IPFS上运行和上传的说明: 安装节点v12.10.0: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash nvm install 12.10.0 nvm alias default 12.10.0 重启终端 安装松露: npm i -g truffle 安装IPFS: npm i -g ipfs重新启动终端 运行IPFS节点: jsipfs daemon 获取项目目录(在新的终端窗口中): git clone https://github.com/dappuniversity/nft_masterclass_1.git 输入项目目录并安装依赖项: cd nft_masterclass_1 && npm i 进入松露开发者模式: truffle develop 迁
资源详情
资源评论
资源推荐
收起资源包目录
RaribleNFT-main.zip (87个子文件)
RaribleNFT-main
.gitignore 345B
.babelrc 50B
package.json 1KB
src
components
Style.css 610B
Navbar.js 5KB
App.js 1004B
Loading.js 1KB
Main.js 10KB
images
eth.png 11KB
logo.png 20KB
index.js 627B
backEnd
abis
Ownable.json 116KB
NFT.json 282KB
ERC165.json 54KB
EnumerableSet.json 520KB
Context.json 19KB
Migrations.json 35KB
IERC165.json 13KB
IERC721Receiver.json 20KB
IERC721.json 120KB
EnumerableMap.json 623KB
Strings.json 95KB
SafeMath.json 357KB
IERC721Metadata.json 40KB
ERC721.json 1.08MB
Address.json 337KB
IERC721Enumerable.json 45KB
scripts
gallery
lady-agnew-of-lochnaw.jpg 208KB
mona-lisa.jpg 417KB
girl-with-a-pearl-earring.jpg 179KB
paradise.jpg 439KB
chalk-cliffs-on-r_gen.jpg 347KB
arnolfini-portrait.jpg 283KB
lady-with-an-ermine.jpg 215KB
the-swing.jpg 367KB
napoleon-crossing-the-alps.jpg 300KB
the-scream.jpg 299KB
heracles-and-the-nemea-lion.jpg 163KB
the-astronomer.jpg 184KB
the-misanthrope.jpg 178KB
the-battle-of-alexander-at-issus.jpg 334KB
wanderer-above-the-sea-of-fog.jpg 226KB
portrait-of-madame-x.jpg 195KB
american-gothic.jpg 231KB
the-entombment-of-christ.jpg 231KB
cafe-terrace-at-night.jpg 402KB
at-eternity_s-gate.jpg 403KB
metadata
portrait-of-madame-x.json 193B
american-gothic.json 183B
cafe-terrace-at-night.json 195B
mona-lisa.json 171B
the-astronomer.json 181B
the-scream.json 173B
the-battle-of-alexander-at-issus.json 217B
wanderer-above-the-sea-of-fog.json 211B
napoleon-crossing-the-alps.json 205B
the-misanthrope.json 183B
the-entombment-of-christ.json 201B
paradise.json 169B
chalk-cliffs-on-r_gen.json 195B
lady-with-an-ermine.json 191B
arnolfini-portrait.json 189B
girl-with-a-pearl-earring.json 203B
the-swing.json 171B
at-eternity_s-gate.json 189B
heracles-and-the-nemea-lion.json 207B
lady-agnew-of-lochnaw.json 195B
nftsData.js 7.3MB
mint.js 2KB
migrations
2_deploy.js 103B
1_initial_migration.js 125B
contracts
Migrations.sol 417B
NFT.sol 1KB
test
helpers.js 305B
test.js 3KB
serviceWorker.js 5KB
store
reducers.js 943B
selectors.js 900B
interactions.js 4KB
actions.js 725B
configureStore.js 503B
public
index.html 2KB
favicon.ico 318KB
manifest.json 309B
README.md 2KB
truffle.js 2KB
.gitattributes 66B
共 87 条
- 1
天驱蚊香
- 粉丝: 27
- 资源: 4554
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1