szwork2013 / RaribleNFT

an NFT project like rarible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ“ƒ Instructions to run & upload on IPFS:

  1. Install node 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
    Restart Terminal
  2. Install Truffle:
    npm i -g truffle
  3. Install IPFS:
    npm i -g ipfs Restart Terminal
  4. Run IPFS Node:
    jsipfs daemon
  5. Get project directory (in new terminal window):
    git clone https://github.com/dappuniversity/nft_masterclass_1.git
  6. Enter project directory and install dependecies:
    cd nft_masterclass_1 && npm i
  7. Enter truffle developer mode:
    truffle develop
  8. Migrate contracts (locally):
    migrate --reset
  9. Mint NFTs (locally):
    exec src/backEnd/scripts/mint.js
  10. Migrate contracts on public network (in this case Kovan):
    a) Rename .env_example to .env and fill accordingly)
    b) Get Kovan ETH i.e. from https://faucet.kovan.network/ or https://gitter.im/kovan-testnet/faucet
    c) Off VPN(if got and ON), then type:
    migrate --reset --network kovan
  11. Mint NFTs on public network (in this case Kovan):
    exec src/backEnd/scripts/mint.js --network kovan 11. Run dApp:
    npm start
  12. Enter dApp in browser:
    localhost:3000
  13. Connect to the dApp:
    If running publicly set MetaMask network to Kovan.
    If running locally set MetaMask network to (Settings>Networks>Add Network):

    MetaMask setting

๐Ÿ“ƒ Instructions to publish on IPFS:

  1. Run IPFS Node (if not running already)
    jsipfs daemon
  2. Create build directory (inside project directory)
    npm run build
  3. Publish on IPFS
    jsipfs add -r build
  4. Copy the latest generated hash and paste into the place of hash below:
    https://ipfs.io/ipfs/hash
    For the first time may take a while to load dApp
  5. Create Human readable link
    Use this site

๐Ÿ“ƒ Instructions to publish on Surge:

  1. Create build directory (inside project directory):
    npm run build
  2. Enter build directory:
    cd build
  3. Install Surge:
    npm i -g surge
  4. Publish on Surge:
    surge
    ...and follow the instructions

About

an NFT project like rarible


Languages

Language:JavaScript 90.6%Language:Solidity 4.2%Language:HTML 3.8%Language:CSS 1.4%