Giter VIP home page Giter VIP logo

rarible-nfts's Introduction

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/johnoseni1/Rarible-NFTs.git
  6. Enter project directory and install dependecies:
    cd rarible-nft && 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

rarible-nfts's People

Contributors

johnoseni1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.