Sajad-Salehi / FullStack_NFT_Minter

NFT Minter Dapp using python, Flask, Solidity and IPFS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FullStack_NFT_Minter

Full stack NFT Minter Dapp using Python, Flask, Solidity and IPFS that can help you to create your NFTs automatically

What is a Minter NFT? A simple UI where you can input a link to your digital asset, a title, and a description



Prerequisites

Please install or have installed the following:

Installation

Install virtualenv, if you haven't already. Here is a simple way to install venv.

python -m pip install --user virtualenv
python -m virtualenv --help

Or, if that doesn't work, via pipx

pipx install virtualenv
virtualenv --help

Create a Virtual Environments and active venv

python3 -m virtualenv venv
cd venv/bin
source activate

After that you need install flask, web3.py and ipfs that we're going to use it to store our metadata

pip install web3
pip install flask
pip install ipfshttpclient
pip install eth-brownie

Usage

Run this command to initalize ipfs:

ipfs daemon 
export IPFS_CONNECT_URL= "Connect_url"

First clone this repo and after that, you need to deploy the smart contract with brownie or web3.py it's up to you, the easiest way is to use brownie.

  1. Deploy using web3.py:
cd src
python3 deploy_contract.py
  1. Deploy using brownie: ''you can use other network instead of rinkeby''
cd contracts
brownie run scripts/deploy.py --network rinkeby

Now you need to set your private_key and web3_provider(use Infura or Alchemy)

export WEB3_PROVIDER= "Web3_provider"
export PRIVATE_KEY= "Private_key"

Then go to the src/mint_token.py, set your smart contract address and use this command to run the app

cd src
flask run

Resources

To get started with Brownie:

License

This project is licensed under the MIT license.

About

NFT Minter Dapp using python, Flask, Solidity and IPFS

License:MIT License


Languages

Language:Python 59.9%Language:HTML 31.7%Language:Solidity 8.4%