Coder Social home page Coder Social logo

mmr-album-collection's Introduction

Decentralized Album Collection

DApp to manage, display and share an online album collection linked to a Metamask wallet, deployed on Polygon.

The App logic consists of two smart contracts:

  • NFT Contract - This contract allows users to mint albums as ERC-721 tokens.
  • Collection Contract - This contract allows users to add, transfer or remove albums from their collection.

Prerequisites

The followings are required for this project:

  1. Node.js installed on your machine
  2. Metamask wallet extension installed as a browser extension

The Stack

This is a full stack application using:

Getting Started

Clone the project and install all dependencies:

npm install

Hardhat configuration is set up for a deployment on the Polygon Mumbai test network, so configure and connect to the Polygon Mumbai test network on Metamask, and get some Matic from the Matic Faucet so that you can interact with the application.

Running the Project

To deploy the smart contract, create a .env file at the root of the project using the template provided in the project. You will need to get:

  • A RPC Endpoint URL from Infura or Alchemy (Mumbai Network)
  • A Polygonscan API Key
  • The Private Key from your Metamask deployer account

Execute the following command to deploy to the Polygon network:

npx hardhat run scripts/deploy.js --network mumbai

When the deployment is complete, the CLI should print out the addresses of the contracts that were deployed. Replace the content of config.js with these values.

You can verify the contracts on Polygonscan by running the following command, replacing the address of both deployed contracts:

npx hardhat verify --network mumbai <deployed-contract-address>

Finally, you can now test out the app by running the command:

npm run dev

Next Steps

  • Add the transfer to another wallet feature
  • Display activity feed of the user

Updates

  • Aug 01, 2022: Created front end page with creation, removal and display features
  • Jul 27, 2022: Created both smart contracts, deployed and verified on Polygon Mumbai network

mmr-album-collection's People

Contributors

wufei90 avatar

Watchers

 avatar

mmr-album-collection'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.