{"id":31690240,"url":"https://github.com/codewithabbass/mintnftdapp","last_synced_at":"2025-11-11T11:18:58.168Z","repository":{"id":318538407,"uuid":"1003223954","full_name":"codewithabbass/MintNFTDapp","owner":"codewithabbass","description":"🚀 Full-stack NFT minting dApp for Base Network using Next.js \u0026 Hardhat. Supports ERC721 tokens, IPFS via Pinata, wallet connect, balance checks, and a modern UI with Tailwind \u0026 shadcn/ui. Fully customizable \u0026 deployable to Base Sepolia/Mainnet.","archived":false,"fork":false,"pushed_at":"2025-10-07T18:20:27.000Z","size":184,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T20:32:07.627Z","etag":null,"topics":["base-network","dapp","erc721","ethereum","ipfs","nextjs","nft","pinata","react","shadcn-ui","smart-contracts","solidity","tailwindcss","web3"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewithabbass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-16T20:19:54.000Z","updated_at":"2025-10-07T18:20:31.000Z","dependencies_parsed_at":"2025-10-07T20:32:11.190Z","dependency_job_id":"c5aea76a-8835-45cf-b2ab-1ab488c9c803","html_url":"https://github.com/codewithabbass/MintNFTDapp","commit_stats":null,"previous_names":["codewithabbass/mintnftdapp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/codewithabbass/MintNFTDapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithabbass%2FMintNFTDapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithabbass%2FMintNFTDapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithabbass%2FMintNFTDapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithabbass%2FMintNFTDapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithabbass","download_url":"https://codeload.github.com/codewithabbass/MintNFTDapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithabbass%2FMintNFTDapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278947970,"owners_count":26073736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base-network","dapp","erc721","ethereum","ipfs","nextjs","nft","pinata","react","shadcn-ui","smart-contracts","solidity","tailwindcss","web3"],"created_at":"2025-10-08T12:42:27.097Z","updated_at":"2025-10-08T12:42:32.078Z","avatar_url":"https://github.com/codewithabbass.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base NFT Collection\n\nA modern, full-stack NFT Minting Dapp built with [Next.js](https://nextjs.org/) and [Hardhat](https://hardhat.org/) for the [Base Network](https://base.org/).  \nThis project allows users to mint NFTs with custom metadata and images, storing assets on IPFS via Pinata.\n\n---\n\n## Table of Contents\n\n-   [Features](#features)\n-   [Project Structure](#project-structure)\n-   [Getting Started](#getting-started)\n    -   [Prerequisites](#prerequisites)\n    -   [Clone the Repository](#clone-the-repository)\n-   [Smart Contract](#smart-contract)\n    -   [Setup \u0026 Deployment](#setup--deployment)\n    -   [Verifying the Contract](#verifying-the-contract)\n-   [Client (Next.js Dapp)](#client-nextjs-dapp)\n    -   [Setup \u0026 Running Locally](#setup--running-locally)\n    -   [Environment Variables](#environment-variables)\n-   [Customization](#customization)\n-   [Contributing](#contributing)\n-   [License](#license)\n\n---\n\n## Features\n\n-   ERC721 NFT contract with metadata and image support\n-   Mint NFTs with custom attributes and images\n-   IPFS integration via Pinata for decentralized storage\n-   Wallet connection and ETH balance check\n-   Modern UI with Tailwind CSS and shadcn/ui\n-   Ready for deployment on Base Sepolia or Base Mainnet\n\n---\n\n## Project Structure\n\n```\nclient/      # Next.js frontend Dapp\n  src/\n    app/\n    components/\n    config/\n    utils/\n  public/\n  ...\ncontract/    # Hardhat smart contract project\n  contracts/\n    BaseNFT.sol\n  scripts/\n    deploy.js\n  test/\n  ...\n```\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n-   [Node.js](https://nodejs.org/) (v18+ recommended)\n-   [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)\n-   [Hardhat](https://hardhat.org/)\n-   [Pinata](https://pinata.cloud/) account for IPFS storage\n-   [Alchemy](https://www.alchemy.com/) or [Infura](https://infura.io/) for Base RPC endpoints\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/codewithabbass/mintnftdapp.git\n```\n\n```bash\ncd mintnftdapp\n```\n\n---\n\n## Smart Contract\n\n### Setup \u0026 Deployment\n\n1. **Install dependencies:**\n\n    ```bash\n    cd contract\n    npm install\n    ```\n\n2. **Configure Environment:**\n\n    - Edit `hardhat.config.js` and replace the placeholder RPC URL and private key with your own.  \n    - If you want to change the NFT collection's name or symbol, open `contracts/BaseNFT.sol`  and update the constructor arguments.  \n    - For example, in the contract:\n    \n        ```solidity\n        constructor() ERC721(\"BaseNFTCollection\", \"BNC\") {}\n        ```\n    -    Replace `\"BaseNFTCollection\"` and `\"BNC\"` with your desired collection name and symbol.  \n\n3. **Compile the contract:**\n\n    ```bash\n    npx hardhat compile\n    ```\n\n4. **Deploy to Base Sepolia:**\n\n    ```bash\n    npx hardhat run scripts/deploy.js --network baseSepolia\n    ```\n\n    - The deployed contract address will be printed in the console.\n\n### Verifying the Contract\n\n1. **Flatten the contract:**\n\n    ```bash\n    npx hardhat flatten contracts/BaseNFT.sol \u003e flattenedBaseNFT.sol\n    ```\n\n2. **Verify on BaseScan:**\n\n    ```bash\n    npx hardhat verify --network baseSepolia YOUR_CONTRACT_ADDRESS\n    ```\n\n---\n\n## Client (Next.js Dapp)\n\n### Setup \u0026 Running Locally\n\n1. **Install dependencies:**\n\n    ```bash\n    cd client\n    npm install\n    ```\n\n2. **Configure Environment Variables:**\n\n    Update `next.config.ts` file in the `client` directory:\n\n    ```\n    NEXT_PUBLIC_PROJECT_ID=your_reown_project_id\n    NEXT_PINATA_JWT=your_pinata_jwt\n    NEXT_PINATA_GATEWAY_URL=https://gateway.pinata.cloud/ipfs\n    NEXT_PINATA_BASE_URL=https://gateway.pinata.cloud/ipfs\n    ```\n\n    - Replace the values with your actual API keys and endpoints.\n    - **Check for comments in the codebase for other places to update contract addresses or API keys.**\n\n3. **Start the development server:**\n\n    ```bash\n    npm run dev\n    ```\n\n    Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n---\n\n## Customization\n\n-   **Contract Address:**  \n    Update the contract address and ABI in `client/src/utils/constant.ts` after deployment.\n\n-   **Network Configuration:**  \n    Update supported networks in `client/src/config/wagmiConfig.ts` and `client/src/config/Wagmi.tsx` as needed.\n\n-   **Pinata Integration:**  \n    The Pinata upload logic is in [`src/utils/IPFS.ts`](client/src/utils/IPFS.ts).  \n    Make sure your JWT and gateway URLs are correct.\n\n-   **UI/UX:**  \n    The main minting interface is in [`src/components/MintinInterface.tsx`](client/src/components/MintinInterface.tsx) and [`src/components/MintForm.tsx`](client/src/components/MintForm.tsx).\n\n---\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/YourFeature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin feature/YourFeature`)\n5. Open a pull request\n\n---\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n\n## Acknowledgements\n\n-   [Next.js](https://nextjs.org/)\n-   [TailwindCss](https://tailwindcss.com/)\n-   [Reown](https://reown.com/)\n-   [Hardhat](https://hardhat.org/)\n-   [OpenZeppelin](https://openzeppelin.com/)\n-   [Pinata](https://pinata.cloud/)\n-   [Sepolia Base Network](https://sepolia.basescan.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithabbass%2Fmintnftdapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithabbass%2Fmintnftdapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithabbass%2Fmintnftdapp/lists"}