{"id":13470873,"url":"https://github.com/dabit3/polygon-ethereum-nextjs-marketplace","last_synced_at":"2025-11-17T15:17:30.066Z","repository":{"id":37046612,"uuid":"382146287","full_name":"dabit3/polygon-ethereum-nextjs-marketplace","owner":"dabit3","description":"A full stack digital marketplace running on Ethereum with Polygon \u0026 Next.js","archived":false,"fork":false,"pushed_at":"2023-09-26T01:48:25.000Z","size":426,"stargazers_count":1317,"open_issues_count":43,"forks_count":869,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-05-13T06:55:04.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dabit3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-07-01T20:15:25.000Z","updated_at":"2025-05-08T22:15:52.000Z","dependencies_parsed_at":"2022-07-04T07:07:17.441Z","dependency_job_id":"40aaabf2-5486-4d6f-bcd8-bcaa3e14b4f9","html_url":"https://github.com/dabit3/polygon-ethereum-nextjs-marketplace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fpolygon-ethereum-nextjs-marketplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fpolygon-ethereum-nextjs-marketplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fpolygon-ethereum-nextjs-marketplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fpolygon-ethereum-nextjs-marketplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dabit3","download_url":"https://codeload.github.com/dabit3/polygon-ethereum-nextjs-marketplace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384929,"owners_count":22062421,"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","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":[],"created_at":"2024-07-31T16:00:36.840Z","updated_at":"2025-11-17T15:17:25.022Z","avatar_url":"https://github.com/dabit3.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","miscellaneous","Official Resources"],"sub_categories":["Node.js"],"readme":"## Full stack NFT marketplace built with Polygon, Solidity, IPFS, \u0026 Next.js\n\n![Header](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pfofv47dooojerkmfgr4.png)\n\nThis is the codebase to go along with tbe blog post [Building a Full Stack NFT Marketplace on Ethereum with Polygon](https://dev.to/dabit3/building-scalable-full-stack-apps-on-ethereum-with-polygon-2cfb)\n\n### Running this project\n\n#### Gitpod\n\nTo deploy this project to Gitpod, follow these steps:\n\n1. Click this link to deploy\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#github.com/dabit3/polygon-ethereum-nextjs-marketplace)\n\n2. Import the RPC address given to you by GitPod into your MetaMask wallet\n\nThis endpoint will look something like this:\n\n```\nhttps://8545-copper-swordtail-j1mvhxv3.ws-eu18.gitpod.io/\n```\n\nThe chain ID should be 1337. If you have a localhost rpc set up, you may need to overwrite it.\n\n![MetaMask RPC Import](wallet.png)\n\n#### Local setup\n\nTo run this project locally, follow these steps.\n\n1. Clone the project locally, change into the directory, and install the dependencies:\n\n```sh\ngit clone https://github.com/dabit3/polygon-ethereum-nextjs-marketplace.git\n\ncd polygon-ethereum-nextjs-marketplace\n\n# install using NPM or Yarn\nnpm install\n\n# or\n\nyarn\n```\n\n2. Start the local Hardhat node\n\n```sh\nnpx hardhat node\n```\n\n3. With the network running, deploy the contracts to the local network in a separate terminal window\n\n```sh\nnpx hardhat run scripts/deploy.js --network localhost\n```\n\n4. Start the app\n\n```\nnpm run dev\n```\n\n### Configuration\n\nTo deploy to Polygon test or main networks, update the configurations located in __hardhat.config.js__ to use a private key and, optionally, deploy to a private RPC like Infura.\n\n```javascript\nrequire(\"@nomiclabs/hardhat-waffle\");\nconst fs = require('fs');\nconst privateKey = fs.readFileSync(\".secret\").toString().trim() || \"01234567890123456789\";\n\n// infuraId is optional if you are using Infura RPC\nconst infuraId = fs.readFileSync(\".infuraid\").toString().trim() || \"\";\n\nmodule.exports = {\n  defaultNetwork: \"hardhat\",\n  networks: {\n    hardhat: {\n      chainId: 1337\n    },\n    mumbai: {\n      // Infura\n      // url: `https://polygon-mumbai.infura.io/v3/${infuraId}`\n      url: \"https://rpc-mumbai.matic.today\",\n      accounts: [privateKey]\n    },\n    matic: {\n      // Infura\n      // url: `https://polygon-mainnet.infura.io/v3/${infuraId}`,\n      url: \"https://rpc-mainnet.maticvigil.com\",\n      accounts: [privateKey]\n    }\n  },\n  solidity: {\n    version: \"0.8.4\",\n    settings: {\n      optimizer: {\n        enabled: true,\n        runs: 200\n      }\n    }\n  }\n};\n```\n\nIf using Infura, update __.infuraid__ with your [Infura](https://infura.io/) project ID.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabit3%2Fpolygon-ethereum-nextjs-marketplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdabit3%2Fpolygon-ethereum-nextjs-marketplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabit3%2Fpolygon-ethereum-nextjs-marketplace/lists"}