Git Product home page Git Product logo

jay-s-block / project-byte-bunch Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 16.38 MB

A website for minting NFTs was made with next.js, ethers and hardhat for my byte bunch NFTS. By modifying it, you can also use this for your own purposes.

Home Page: https://bytebunch.jaykeraliya.tech

License: MIT License

CSS 0.53% TypeScript 90.28% Solidity 7.67% JavaScript 1.52%
dapp erc721 ethereum ethersjs minting-dapp nextjs nft react reusable solidity

project-byte-bunch's Introduction

Byte Bunch

Byte Bunch is a versatile NFT project based on the ERC-721 standard, offering users the ability to mint, own, and trade unique digital assets. With its modular architecture, users can easily customize the smart contract, update environment variables, and personalize the design to suit their specific needs. Whether you're an artist, collector, or NFT enthusiast, Byte Bunch provides a seamless and customizable platform to explore the world of NFTs, connect with a vibrant community, and unleash your creativity in the digital realm.

Tech Stack

Client: Next.js, React, TailwindCSS, Ethers.

Server: Solidity, Hardhat, Infura

Screenshots

App Screenshot

App Screenshot

App Screenshot

How to deploy

  1. Clone the project
git clone https://github.com/jaykeraliya0/Project-Byte-Bunch
  1. upload your images and metadata files to ipfs and copy CID of metada (don't forgate to link images in metadata jsons)

  2. Go to backend/contracts/ and edit ByteBunch.sol smart contract according to your requirements.

uint256 public cost = 0.01 ether; // price per nft
uint256 public maxSupply = 10000; // maximum nuber of nfts of your collection
uint256 public maxMintAmountPerTx = 5; // number of nfts user can mint per transection
constructor() ERC721("NAME", "SYMBOL") {
    setHiddenMetadataUri("ipfs:///__CID__.json");
}

update above feilds in smart contract

  1. install dependencies
npm install
cd backend
npm install
  1. configure hardhat.config.ts and deploy contract
npx hardhat run scripts/deploy.ts
  1. copy and save your contract deployed address from console

  2. build and run frontend next.js

npm run build
npm start

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Don't forgate to add environment veribles in vercel

Environment Variables

To run this project, you will need to add the following environment variables to your .env file. There are two .env files on at root and another at backend folder.

  1. Root env

NEXT_PUBLIC_CONTRACT_ADDRESS Address of smart contract after deployment

INFURA_API_KEY Infura API key

  1. Backend env

API_URL You can get from alchemy

PRIVATE_KEY Private key of your ethereum wallet

You can find the respective .env.example in project directories.

License

MIT

project-byte-bunch's People

Contributors

dependabot[bot] avatar jaykeraliya0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

project-byte-bunch's Issues

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.