/vyper-nft

Primary LanguagePython

NFT in Vyper

1 - Setting up the environment:

Recommendations:

The following tools are not required but highly recommended for a better coding experience:



Requirements:

  • Git of course :-)
  • Node JS: Make sure to have Node JS installed.
  • Infura: Create an Infura account and project and get the project id
  • Etherscan: Create an Etherscan account and api key
  • pyenv-virtualenv :
    • Mac OS:
      1. Install Homebrew (install)

      2. Install package:

        brew install pyenv-virtualenv
      3. Add it to path (assuming you are using ZSH)

        echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
        echo 'eval "$(pyenv init -)"' >> ~/.zshrc
        echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
    • Other OS: (Follow instructions to install)


Configuration Steps:

  1. Clone the repo

    git clone git@github.com:hightop-web3/vyper-nft.git

    and then:

    cd vyper-nft
  2. Install Ganache globally (Only needed once)

    npm install -g ganache
  3. Install python version

    pyenv install 3.9.8
  4. Create the Python virtual environment (Only needed once)

    pyenv virtualenv 3.9.8 vyper-nft
    
  5. Install the dependencies

    pip install -r requirements.txt


Running the project:

  • To Compile the smart-contracts, run:
    brownie compile
  • Run tests with:
    brownie test

Dependencies

  • When adding a new dependency run the command below to update the requirements.txt file.
    pip freeze > requirements.txt