Skip to content

piyush97/divvy

Repository files navigation

Divvy is a Decentralised Dapp made on Web3. It's a Marketplace for artists to sell their digital assets, earn royality and make some sales on the polygon matic network.

Made with ♥️ using and by Piyush Mehta

Wallets Compatible

MetaMask

Crypto Currency for exchange of NFTs

Polygon Matic

How to run this project locally

Prerequisites

  1. Git
  2. Node: any 12.x version starting with v12.0.0 or greater
  3. Yarn: See Yarn website for installation instructions
  4. A fork of the repo (for any contributions)

1. Setting up local env

  1. Create secret.js in the root of the project
// secret.js get private key and project id from https://infura.io

const PRIVATE_KEY = "your private key"
const PROJECT_ID = "your project id"
module.exports = { PRIVATE_KEY, PROJECT_ID };
  1. Installing dependencies
 ➜ yarn install
  1. Install Metamask on your choice of browser

2. Running the blockchain locally

  ➜ npx hardhat test # To test the smart contract
  ➜ npx hardhat run scripts/deploy.js --network localhost # To get cred for local network
  ➜ npx hardhat node # create a local node

3. Running the frontend locally

  ➜ yarn dev

Made with ❤️ by Piyush Mehta