Step into the world of music NFTs And immerse yourself in a Revolutionary new way to experience And collect music.
- Contract written in solidity and deployed in Polygon Mumbai net
- Uses the protocol of ERC 721 to mint token URI of music art uploaded to IPFS
- Utilized Hardhat for deployement and testing
To deploy your own contract :-
- Add Polygon mumbai to your wallet
- Get yourself a polygonscan API
- Navigate to
/src/Contracts
- Refer to env_sample file and create your env with required fields mentioned.
PRIVATE_KEY = "" POLYGONSCAN_API_KEY=""
- Go to terminal and run
npm install
oryarn install
to install dependecies. - And in hardhat perform :-
To compile:-
To deploy (You may modify the hardhat config according to network of your choice):-
npx hardhat compile
And save the contract address for frontend fetch usenpx hardhat run scripts/deploy.js --network polygon_mumbai
To integrate firebase backend :-
- Start a new firebase server at your console.
- Create a new web app in firebase server and copy paste the config the config accordingly at
FirebaseConfig.js
located insrc/BackendConfig
folder. - Add collections users,artists,happy,sad,angry.
- You can expand collections based on moods to be added.
To integrate blockchain :-
- Get a API key from NFT STORAGE to enable your own uploading feature
- Go to Alchemy and get a API key with polygon network RPC. (or network of your choice where you have deployed your contract)
- Get all API keys and contract address ,finally add it in env file inside root folder. Checkout env_sample file for model env.
REACT_APP_APIKEY = ""
REACT_APP_PUBLIC_NFT_STORAGE_TOKEN=""
REACT_APP_PUBLIC_ALCHEMY_KEY=""
REACT_APP_NFTMARKETPLACE_CONTRACT = ""
To run the application:-
Navigate to root folder in termianl And run the following commands to install dependencies and run app
npm install
npm run start